chain_block_by_time
Block number at a date or timestamp — Find the block at a point in time on Ethereum, Base, Arbitrum, Optimism or Polygon: the last block with timestamp <= the requested time, plus the next block and the closest block. Pass timestamp (unix seconds) or date (ISO 8601). Interpolation search over public JSON-RPC (typically 5-16 lookups). Params: chain (ethereum|base|arbitrum|optimism|polygon), timestamp or date. Price: $0.002 USDC (Base, via x402).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"chain": "<chain>",
"timestamp": "<timestamp>"
},
"name": "chain_block_by_time"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chain | Yes | ethereum | |
| timestamp | Yes | 1704067200 |