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 ascWhat heto hands back
| hourdatetime | liquidationsbigint | seizeddecimal | usddecimal | ethLowdecimal |
|---|---|---|---|---|
| 2025-10-10T18:00:00Z | 2 | 87.566274 | 356530.133931 | 4071.546201 |
| 2025-10-10T19:00:00Z | 17 | 140.626380 | 563946.748704 | 3968.31 |
| 2025-10-10T20:00:00Z | 14 | 41.664770 | 163140.232111 | 3895.956716 |
| 2025-10-10T21:00:00Z | 140 | 6109.572849 | 22183635.852036 | 3456.7046 |
| 2025-10-10T22:00:00Z | 1 | 0.746575 | 2901.081222 | 3885.85 |
| 2025-10-10T23:00:00Z | 19 | 34.324879 | 131896.156127 | 3820.5056 |
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 = $senderCQL2002 error at line 2, column 15
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 1CQL1006 error at line 1, column 6
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.