Appearance
Chains and costs
Which chains a query can read, what a run costs during the beta, and where the limits are.
Chains
| Chain | Write an address as | chain() also accepts | An event source with no at reads |
|---|---|---|---|
| Ethereum | ethereum:0x… | ethereum-mainnet, eth | the last 10 000 blocks |
| Base | base:0x… | base-mainnet | the last 50 000 blocks |
| Arbitrum One | arbitrum:0x… | arbitrum-one, arb | the last 200 000 blocks |
One query can read more than one chain. Compare a contract across chains shows how.
Costs
heto is free during the beta, and that includes running queries. Nothing is charged, and the run bar shows no cost.
After the beta, running a query will use credits that you buy ahead of time. Writing, checking and saving queries will stay free. Errors and diagnostics describes how credits will show in the workbench.
Limits
Each query has caps on how much it can read and return. A long range of state with no step is sampled to fit. A query that would pass a cap stops with a diagnostic that names it. You never get a result cut short without a warning. Long ranges and limits lists every cap and how to make a query smaller.
See also
- Read your own contract — your first query on an address you choose.
- Blocks and time — which blocks a query reads.