{ "$schema": "http://json-schema.org/draft-04/schema#", "title": "getLedger", "type": "object", "properties": { "stateHash": { "$ref": "hash256", "description": "Hash of all state information in this ledger." }, "closeTime": { "type": "string", "format": "date-time", "description": "The approximate time when this ledger was closed. This number is rounded based on the `closeTimeResolution`. If it would have been rounded to the same time as a previous ledger, the close time is recorded as 1 second later instead." }, "closeTimeResolution": { "type": "integer", "minimum": 1, "description": "A number of seconds, indicating how much the `closeTime` could be rounded. Ledger close times are approximate so that small differences in servers clocks don't hinder consensus." }, "closeFlags": { "type": "integer", "minimum": 0, "description": "A bit-map of flags relating to the closing of this ledger. Currently, the ledger has only one flag defined for `closeFlags`: **sLCF_NoConsensusTime** (value 1). If this flag is enabled, it means that validators disagreed on the correct close time for the ledger, but built otherwise the same ledger, so they declared consensus while \"agreeing to disagree\" on the close time. In this case, the consensus ledger contains a `closeTime` value that is 1 second after that of the previous ledger. (In this case, there is no official close time, but the actual real-world close time is probably 3-6 seconds later than the specified `closeTime`.)" }, "ledgerHash": { "$ref": "hash256", "description": "Unique identifying hash of the entire ledger." }, "ledgerVersion": { "$ref": "ledgerVersion", "description": "The ledger version of this ledger." }, "parentLedgerHash": { "$ref": "hash256", "description": "Unique identifying hash of the ledger that came immediately before this one." }, "parentCloseTime": { "type": "string", "format": "date-time", "description": "The previous ledger's recorded close time." }, "totalDrops": { "$ref": "value", "description": "Total number of drops (1/1,000,000th of an XRP) in the network, as a quoted integer. (This decreases as transaction fees cause XRP to be destroyed.)" }, "transactionHash": { "$ref": "hash256", "description": "Hash of the transaction information included in this ledger." }, "transactions": { "description": "Array of all transactions that were validated in this ledger. Transactions are represented in the same format as the return value of [getTransaction](#gettransaction).", "type": "array", "items": { "$ref": "getTransaction", "description": "A transaction in the same format as the return value of [getTransaction](#gettransaction)." } }, "transactionHashes": { "description": "An array of hashes of all transactions that were validated in this ledger.", "type": "array", "items": { "$ref": "transactionHash" } }, "rawState": { "type": "string", "description": "A JSON string containing all state data for this ledger in rippled JSON format." }, "stateHashes": { "description": "An array of hashes of all state data in this ledger.", "type": "array", "items": { "$ref": "hash256" } } }, "required": [ "stateHash", "closeTime", "closeTimeResolution", "closeFlags", "ledgerHash", "ledgerVersion", "parentLedgerHash", "parentCloseTime", "totalDrops", "transactionHash" ], "additionalProperties": false }