stellar_ledger_fetch
Fetch Stellar ledger data by sequence number to inspect ledger details, transactions, or metadata. Supports limit, output format, network, RPC URL, and XDR options.
Instructions
Fetch specific ledger information by sequence number
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": {
"sequence": "<sequence>"
},
"name": "stellar_ledger_fetch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Number of ledgers to fetch (default: 1) | |
| output | No | Format of the output | |
| rpcUrl | No | RPC server endpoint | |
| network | No | Name of network to use from config | |
| sequence | Yes | Ledger sequence to start fetch (inclusive) | |
| xdrFormat | No | Format of the XDR in the output | |
| rpcHeaders | No | RPC Header(s) to include in requests to the RPC provider | |
| networkPassphrase | No | Network passphrase |