The problem
Every chart point is a past state: a balance, a pool reserve or a total supply at a given block.
How archive RPC helps
- eth_call at any block number returns the value as it was then.
- erigon_getBlockByTimestamp turns a date into a block in one call.
- Batch many reads at one block into a single HTTP request.
Methods you will call
- eth_callExecutes a read-only contract call against the state of a given block, without sending a transaction.
- erigon_getBlockByTimestampReturns the block closest to a Unix timestamp. The fastest way to turn a date into a block number.
- eth_getBalanceReturns the native token balance of an address at a given block.
- eth_getStorageAtReturns the raw value of a contract storage slot at a given block.
Example
Total supply at a past block (viem)
const supply = await client.readContract({
address: "0xdAC17F958D2ee523a2206206994597C13D831ec7", // USDT
abi: erc20Abi,
functionName: "totalSupply",
blockNumber: 18_908_895n,
});Which plan
Builder for daily snapshots; Growth when you rebuild long histories. See pricing or how it compares.