Query contract state with SQL
Call an EVM contract function from SQL, pin the read to one block, and use a column as the function argument.
Open guideEach guide is a runnable notebook for a complete workflow. Run it as written, then change the SQL or inputs.
Open a linked function when you need its exact signatures, argument types, return values, or examples.
Call an EVM contract function from SQL, pin the read to one block, and use a column as the function argument.
Open guideRead one day of ERC-20 token transfers with SQL and find who received the most.
Open guideRead one ETH price per day from Chainlink, write buy and sell rules, and compare them with buying and holding.
Open guideCompare Uniswap V3, V4, and split ETH → USDC routes at one pinned block. Simulate family leaders, rank after gas, and inspect every check and rejection reason.
Open guide