Quick Reference
| Method | Description | Parameters |
|---|---|---|
block | Get block details by height, hash, or finality | finality OR block_id |
block_effects | Get changes in a specific block | finality OR block_id |
chunk | Get chunk details by chunk_id or block_id + shard_id | chunk_id OR block_id + shard_id |
Block Details
Queries network and returns block for given height or hash. You can also usefinality param to return latest block details.
Note: You may choose to search by a specific block or finality, you cannot choose both.
- method:
block - params:
finalityORblock_id
- by finality
- by block height
- by block hash
- JSON
- JavaScript
- HTTPie
Example response
Example response
Block Effects
Returns changes in a block for given block height or hash. Includes changes likeaccount_touched, access_key_touched, data_touched, contract_code_touched.
- method:
block_effects - params:
finalityORblock_id
- by finality
- by block height
- by block hash
- JSON
- JavaScript
- HTTPie
Example response
Example response
Chunk Details
Returns details of a specific chunk. You can run a block details query to get a valid chunk hash.- method:
chunk - params:
chunk_idORblock_id+shard_id
- by chunk_id
- by block_id + shard_id
- JSON
- JavaScript
- HTTPie
Example response
Example response
Error Handling
| Error Code | Description | Solution |
|---|---|---|
UNKNOWN_BLOCK | Block not found or garbage-collected | Check block validity; use archival node for old blocks |
UNKNOWN_CHUNK | Chunk not found in database | Verify chunk ID; use archival node for old chunks |
INVALID_SHARD_ID | Shard ID does not exist | Provide valid shard ID for existing shard |
NOT_SYNCED_YET | Node still syncing | Wait for sync completion or use different node |
PARSE_ERROR | Invalid request parameters | Check parameter format and completeness |
INTERNAL_ERROR | Server-side issue | Retry request or try different RPC endpoint |