Optionalapi_The API version to use. If omitted, use version 1.
OptionalbinaryIf set to true, return ledger objects as hashed hex strings instead of JSON.
The name of the API method.
OptionalidA unique value to identify this request. The response to this request uses the same id field. This way, even if responses arrive out of order, you know which request prompted which response.
Optionalledger_A 20-byte hex string for the ledger version to use.
Optionalledger_The ledger index of the ledger to use, or a shortcut string.
OptionallimitLimit the number of ledger objects to retrieve. The server is not required to honor this value.
OptionalmarkerValue from a previous paginated response. Resume retrieving data where that response left off.
OptionaltypeIf included, filter results to include only this type of ledger object.
The
ledger_datamethod retrieves contents of the specified ledger. You can iterate through several calls to retrieve the entire contents of a single ledger version.Example