NOVAI block by height or hash
novai_get_blockFetch a committed block by height or hash. Returns block height, hash, parent hash, round, state root, and transaction count, or null if not found.
Instructions
Fetch a single committed block by height or by hash. Provide exactly one of height or hash. Returns the block height, block hash, parent hash, round, state root, and transaction count, or null if no such block is known. Note: the endpoint retains a bounded recent window of blocks by height, so very old heights can return null even though they were valid blocks. Lookups by hash work for any block the node still indexes.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| height | No | Block height. Provide either height or hash, not both. | |
| hash | No | Block hash, 64 hex characters. Provide either height or hash, not both. |