get_ledger
Get details of a specific XRP Ledger or the latest validated ledger. Optionally include transaction hashes or full transaction details.
Instructions
Get information about a specific ledger or the latest validated ledger
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_ledger"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| expand | No | If true, include full transaction details instead of just hashes (default: false) | |
| network | No | The XRPL network to query (default: mainnet) | |
| ledger_index | No | Ledger index number, or "validated", "closed", "current" (default: validated) | |
| transactions | No | If true, include transaction hashes in the response (default: false) |