chain_block
Fetch block header data—number, hash, timestamp, miner, transaction count, gas used/limit, and base fee—for the latest block or a specified number, safe, or finalized block.
Instructions
[Trading Data API] Block header lookup: number, hash, timestamp, miner, tx count, gas used/limit and base fee. Latest by default, or any block number, safe or finalized.
Example: /v1/chain-block?chain=base&block=latest
Use when you need a block header (number, hash, time, miner, gas, base fee), latest by default. Not for a single transaction (use chain_tx).
Behavior: read-only. Priced via x402 (USDC on Base) or free with WICKEDAPI_API_KEY; with neither, you get HTTP 402 with the decoded price in payment_required (a price quote, not a failure).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| block | No | Optional. A block number, "latest", "safe" or "finalized" (default latest). | |
| chain | No | Optional. ethereum, base, arbitrum, optimism, polygon (default base). |