XRP block data
xrp_block_dataRetrieve XRP block details by height or hash, list block transactions, and fetch latest mined blocks on mainnet or testnet to inspect ledger activity.
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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"action": "<action>",
"network": "<network>"
},
"name": "xrp_block_data"
}
}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) |