Blockchain data for your agent, without the scripts.

Your agent writes a few lines of CQL, our query language, and runs them through our MCP server. heto hands back the rows.

The MCP server is live, and free to run while we’re in beta.

What your agent writes

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

What heto hands back

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, the same one the For you page leads with: 13 lines of CQL for every liquidation on Aave’s main Ethereum market that seized ETH through the crash of October 10, 2025. We trimmed the decimals to 6 places to fit.

What a script costs your agent

Ask an agent for that table and it writes a script: it finds two ABIs, pages through 10 hours of logs, calls the oracle at every liquidation’s block, then groups and adds it all up. It writes each step, runs it, reads back what went wrong and tries again, and you pay for the tokens every time. In CQL, each of those steps is part of a line.

from aave events LiquidationCallABIs found for you
We look up the ABI of any verified contract, through its proxy if it has one, so your agent never fetches or pastes one.
at time '…'..'…'Times, not block numbers
Give a time range and heto finds the blocks, then reads the logs in pieces a node will answer.
oracle.getAssetPrice(WETH)Calls at each event’s block
A call on an event’s row is answered at the block the event landed in. heto makes the calls, and your agent writes one expression.
| summarize … by hour = bin($timestamp, 1h)Totals in the query
Grouping and adding up happen before the rows come back, so your agent reads 10 rows, not 219 events.

Errors your agent can fix on its own

heto checks a query before it reads anything from the chain. A mistake comes back with a code, its line and column and, most of the time, a hint, so your agent can correct the query and run it again without you.

from ethereum:0x7d2768de32b0b80b7a3454c06bdac94a69ddc7a9
| project s = $sender

CQL2002 error at line 2, column 15

$sender is not a column, source alias or let binding

In scope here: $chain, $block, $blockHash, $timestamp, $address, $sampleAt.

A column it guessed comes back with the names it can use.

from ethereum:0x7D2768de32b0b80b7a3454c06bdac94a69ddc7a9
| take 1

CQL1006 error at line 1, column 6

Address checksum is invalid; use lowercase or the EIP-55 form 0x7d2768dE32b0b80b7a3454c06BdAc94A69DDc7A9

Mixed-case address literals are checked against EIP-55; all-lowercase is always accepted.

An address with its capitals wrong comes back with the right spelling.

Every code is listed in the docs, with what causes it.

Questions

How do I connect my agent?

Add heto’s MCP server to your agent’s client, then sign in to heto when it asks. The setup guide has the server’s address and the steps, with Claude Code as the example.

What can my agent do with it?

Look up a contract’s functions and events, check a query without running it, run it, and page through the rows, each tied to the blocks it read. When you sign in, you choose whether it may run queries or only check them.

Does my agent need to learn CQL first?

No. The first thing the server hands it is the CQL primer, and the whole handbook is one plain-text file, llms-full.txt. Every table of rows there is what its query returned against the chain, so it has real queries to start from, and the errors above tell it what to change.

Can my agent 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.

What does it cost?

Running queries is free while we’re in beta, from your agent too. The pricing page says how that changes after.

Connect your agent.

Add the MCP server to your agent’s client, sign in, and its first query is a few lines away. The setup guide walks through it.