Parameters
- objectobjectREQUIRED
The ledger request object.
- ledger_indexstring
The index of the ledger to retrieve information
- transactionsboolean
A boolean flag indicating whether to include the information about transactions in the specified ledger version
- expandboolean
A boolean flag indicating whether to provide full JSON-formatted information for transaction/account information instead of only hashes
- owner_fundsboolean
A boolean flag indicating whether to include owner_funds field in the metadata of OfferCreate transactions in the response
Returns
- resultobject
The details of the result
- ledgerobject
The complete header data of this ledger with the following fields:
- acceptedboolean
A boolean flag indicating whether the ledger has been accepted
- account_hashstring
A hash value representing the state of all accounts in the ledger
- close_flagsinteger
A flags indicating the additional information about the ledger close
- close_timeinteger
The timestamp when the ledger was closed, represented in UNIX time format
- close_time_humanstring
The time this ledger was closed, in human-readable format
- close_time_resolutioninteger
The ledger close times are rounded to within this many seconds
- closedboolean
A boolean flag indicating whether or not this ledger has been closed
- hashstring
The unique identifying hash of the entire ledger. This field is deprecated, use ledger_hash instead
- ledger_hashstring
The unique identifying hash of the entire ledger
- ledger_indexstring
The index of the ledger
- parent_close_timeinteger
The time at which the previous ledger was closed
- parent_hashstring
The unique identifying hash of the ledger that came immediately before this one
- seqNumstring
The sequence number of the ledger
- totalCoinsstring
The total number of coins in the ledger. This field is deprecated, use total_coin instead
- total_coinsstring
The total number of coins in the ledger
- transaction_hashstring
The transactions applied in this ledger version
- ledger_hashstring
(Optional) The unique identifying hash of the entire ledger
- ledger_indexinteger
(Optional) The Ledger Index of this ledger
- ledger_current_indexinteger
(Optional) The ledger index of the current in-progress ledger
- statusstring
It indicates the status of the response
- validatedboolean
It indicates whether the ledger has been validated
- typestring
(Optional) It Filters by a ledger entry type. The valid types are: account, amendments, amm, check, deposit_preauth, directory, escrow, fee, hashes, nft_offer, offer, payment_channel, signer_list, state (trust line), and ticket. If using request accounts (state data), ignore it
- diffboolean
(Optional) If true, returns all objects that were added, modified, or deleted as part of applying transactions in the specified ledger
- warningsarray
(Optional) An array of warning objects, each containing the following fields. Returned at the JSON-RPC response root on some servers and omitted from the
resultobject- idinteger
The ID of the warning
- messagestring
The warning message
1{2"result": {3"ledger": {4"closed": false,5"ledger_index": "102609805",6"parent_hash": "7735091DF9F32511F41AD963A8BDE4AF24B27D3AA3946903A31E3CFF2B948217"7},8"ledger_current_index": 102609805,9"validated": false,10"status": "success"11},12"status": "success",13"type": "response",14"forwarded": true,15"warnings": [16{17"id": 2001,18"message": "This is a clio server. clio only serves validated data. If you want to talk to rippled, include 'ledger_index':'current' in your request"19}20]21}
1{2"result": {3"ledger": {4"closed": false,5"ledger_index": "102609805",6"parent_hash": "7735091DF9F32511F41AD963A8BDE4AF24B27D3AA3946903A31E3CFF2B948217"7},8"ledger_current_index": 102609805,9"validated": false,10"status": "success"11},12"status": "success",13"type": "response",14"forwarded": true,15"warnings": [16{17"id": 2001,18"message": "This is a clio server. clio only serves validated data. If you want to talk to rippled, include 'ledger_index':'current' in your request"19}20]21}