xrp_block_data
Get XRP block data by height or hash, list block transactions, and retrieve the last mined block on mainnet or testnet.
Instructions
Get XRP block details (Block Data product). Path uses network only (no blockchain). Networks: mainnet, testnet.
Actions: • get-block-by-height: Get block details by block height (number) • get-block-by-hash: Get block details by block hash • list-transactions-by-block-height: List transactions in a block by block height • list-transactions-by-block-hash: List transactions in a block by block hash • get-last-mined-block: Get the latest mined block details • list-latest-mined-blocks: List the latest mined blocks
Credits by action (source: OpenAPI): • get-block-by-hash: 20 • get-block-by-height: 20 • get-last-mined-block: 20 • list-latest-mined-blocks: 20 • list-transactions-by-block-hash: 20 • list-transactions-by-block-height: 20
Credits are indicative only and may change at any time. The actual credits spent for each API request are returned in the response headers.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | No | Number of blocks to return (for list-latest-mined-blocks) | |
| limit | No | Number of items to return (max 50) | |
| action | Yes | Action to perform | |
| offset | No | Pagination offset | |
| context | No | Optional context for the request - echoed back in response | |
| network | Yes | Network name: mainnet or testnet | |
| blockHash | No | Block hash (required for get-block-by-hash, list-transactions-by-block-hash) | |
| blockHeight | No | Block height (required for get-block-by-height, list-transactions-by-block-height) |