Block by number or tag
getBlockGet a block by a 0x-64 hash, a block number (decimal or 0x-hex), or a tag (latest, finalized, safe, earliest, pending).
Tier 2 drops the verbose header roots and bloom and, with includeTxs, ABI-decodes and compacts the embedded transactions. A large block WITH includeTxs can exceed the compression budget, so check tier_degraded before reading decimal header fields or decoded transactions.
Sui: block is a checkpoint number or digest.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| block | Yes | Block number (decimal or 0x-hex), a 0x-64 block hash, or a tag. Above 2^53 pass a STRING — a JSON number that large is not exact. | |
| chain | Yes | Chain slug as in rpc.ankr.com/<chain> — any chain Ankr serves (see listChains) | |
| includeTxs | No | Include full (decoded) transactions instead of just hashes (default false) |