Blockchain data, without the scripting.

Query events, calls, contracts, and state across EVM chains with one composable language.

let aave   = ethereum:0x87870Bca3F3fD6335C3F4ce8392D69350B4fA4E2;
let oracle = ethereum:0x54586bE62E3c3580375aE3723C145253060Ca0C2;
let WETH   = ethereum:0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2;

from aave events LiquidationCall
     at time '2025-10-10T18:00:00Z'..'2025-10-11T04:00:00Z' as l
| where l.collateralAsset == WETH
| extend eth   = todecimal(l.liquidatedCollateralAmount) / 1e18,
         price = todecimal(oracle.getAssetPrice(WETH)) / 1e8
| summarize liquidations = count(), seized = sum(eth),
            usd = sum(eth * price), ethLow = min(price)
            by hour = bin($timestamp, 1h)
| order by hour asc
hourdatetimeliquidationsbigintseizeddecimalusddecimalethLowdecimal
2025-10-10T18:00:00Z287.566274356530.1339314071.546201
2025-10-10T19:00:00Z17140.626380563946.7487043968.31
2025-10-10T20:00:00Z1441.664770163140.2321113895.956716
2025-10-10T21:00:00Z1406109.57284922183635.8520363456.7046
2025-10-10T22:00:00Z10.7465752901.0812223885.85
2025-10-10T23:00:00Z1934.324879131896.1561273820.5056
usd by hourColumns of usd over hour, from all 10 rows the query returned.010M20Musd18:002025-10-1021:0000:002025-10-1103:00hour (UTC)2025-10-10T18:00:00Z usd 356530.133931841565517145372320692025-10-10T19:00:00Z usd 563946.74870441281062701231144382025-10-10T20:00:00Z usd 163140.232111408144257728850423872025-10-10T21:00:00Z usd 22183635.852036577932750939683553352025-10-10T22:00:00Z usd 2901.081222862498649524852025-10-10T23:00:00Z usd 131896.156127379675362391583671922025-10-11T00:00:00Z usd 4205.607832043302811795493574782025-10-11T01:00:00Z usd 44149.778370022078855347087528722025-10-11T02:00:00Z usd 554.40452835351467717018271022025-10-11T03:00:00Z usd 539.0432914094942522379062328
usd by hourColumns of usd over hour, from all 10 rows the query returned.010M20Musd18:002025-10-1000:002025-10-11hour (UTC)2025-10-10T18:00:00Z usd 356530.133931841565517145372320692025-10-10T19:00:00Z usd 563946.74870441281062701231144382025-10-10T20:00:00Z usd 163140.232111408144257728850423872025-10-10T21:00:00Z usd 22183635.852036577932750939683553352025-10-10T22:00:00Z usd 2901.081222862498649524852025-10-10T23:00:00Z usd 131896.156127379675362391583671922025-10-11T00:00:00Z usd 4205.607832043302811795493574782025-10-11T01:00:00Z usd 44149.778370022078855347087528722025-10-11T02:00:00Z usd 554.40452835351467717018271022025-10-11T03:00:00Z usd 539.0432914094942522379062328
usd by hourColumns of usd over hour, from all 10 rows the query returned.010M20Musd18:002025-10-1019:0020:0021:0022:0023:0000:002025-10-1101:0002:0003:0004:00hour (UTC)2025-10-10T18:00:00Z usd 356530.133931841565517145372320692025-10-10T19:00:00Z usd 563946.74870441281062701231144382025-10-10T20:00:00Z usd 163140.232111408144257728850423872025-10-10T21:00:00Z usd 22183635.852036577932750939683553352025-10-10T22:00:00Z usd 2901.081222862498649524852025-10-10T23:00:00Z usd 131896.156127379675362391583671922025-10-11T00:00:00Z usd 4205.607832043302811795493574782025-10-11T01:00:00Z usd 44149.778370022078855347087528722025-10-11T02:00:00Z usd 554.40452835351467717018271022025-10-11T03:00:00Z usd 539.0432914094942522379062328
ethereumlatest 26,123,149finalized 26,123,06410 rows, 6 shown

That’s a real run: every liquidation on Aave’s main Ethereum market that seized ETH, hour by hour through the crash of October 10, 2025, each priced by Aave’s own oracle at its block. We trimmed the decimals to 6 places to fit.

How a query runs

  1. from stETH at latest

    Pick a contract and its blocks

    One block, a range, or one block in every few thousand. Name them by number or by time.

  2. | project { … }

    Shape the rows

    Each line takes the rows from the line above. Filter them, add columns, join another series or total them up.

  3. ethereum latest 26,123,149 finalized 26,123,064

    Get rows tied to a block

    Every result records the blocks it read. Rerun it next week and you’ll know whether the chain moved or the question did.

What you can ask

at latest-21600..latest every 7200State over time
Call any read function across a range of blocks, every few thousand blocks or every hour, day or week.
from stETH events TransferEvents
Read a contract’s events with their arguments decoded, filter them, and check its state at the block each one landed in.
| join (…) on $blockJoins and unions
Line up two series by block or by hour, or stack results that share columns. Both happen in the query, not in a spreadsheet afterward.
ethereum:0x… base:0x…Several chains
Every address carries its chain, so one query can read Ethereum, Base and Arbitrum together.
with { abi: erc20 }ABIs found for you
We look up the ABI of any verified contract. For the rest, paste one into your library once, or use a built-in like erc20.
| summarize total = sum(t.value) by senderOne step per line
Filter, compute, sort, keep the top rows, add things up. Each line works on the rows from the line above it.

Questions

Which chains can I query?

Ethereum, Base and Arbitrum for now. Every address includes its chain, like ethereum:0xae7a…fE84, so one query can read more than one.

Can my agent write and run queries?

Yes. Connect it to heto’s MCP server and it checks and runs CQL itself, then reads back the rows. The setup guide has the steps, and For your agent shows what it saves you.

Can a query change anything on-chain?

No. heto only reads. It calls contracts the way a wallet does when it previews a transaction, and it never sends one.

How fresh is the data?

A run reads the chain as of the moment it starts, and records the latest and the finalized block it saw. Run it again to pick up new blocks, or name an older block to look back.

Do I need the contract’s ABI?

Not if the contract is verified. We find the ABI for you. If it isn’t verified, paste its ABI into your library once, or use a built-in one like erc20.

What does it cost?

Nothing while we’re in beta, and that includes running queries. Later, running a query will cost credits, and writing and saving queries will stay free. The details are on the pricing page.

Write your first query.

The editor checks your query as you type and shows what a run will read before it starts.