Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Response of ledger command missing close_time_iso field #2715

Open
tequdev opened this issue Jun 27, 2024 · 1 comment · May be fixed by #2779
Open

Response of ledger command missing close_time_iso field #2715

tequdev opened this issue Jun 27, 2024 · 1 comment · May be fixed by #2779

Comments

@tequdev
Copy link
Contributor

tequdev commented Jun 27, 2024

export default interface Ledger {
/** The SHA-512Half of this ledger's state tree information. */
account_hash: string
/** All the state information in this ledger. Admin only. */
accountState?: LedgerEntry[]
/** A bit-map of flags relating to the closing of this ledger. */
close_flags: number
/**
* The approximate time this ledger version closed, as the number of seconds
* since the Ripple Epoch of 2000-01-01 00:00:00. This value is rounded based
* on the close_time_resolution.
*/
close_time: number
/**
* The approximate time this ledger was closed, in human-readable format.
* Always uses the UTC time zone.
*/
close_time_human: string
/**
* An integer in the range [2,120] indicating the maximum number of seconds
* by which the close_time could be rounded.
*/
close_time_resolution: number
/** Whether or not this ledger has been closed. */
closed: boolean
/**
* The SHA-512Half of this ledger version. This serves as a unique identifier
* for this ledger and all its contents.
*/
ledger_hash: string
/**
* The ledger index of the ledger. Some API methods display this as a quoted
* integer; some display it as a native JSON number.
*/
ledger_index: string
/** The approximate time at which the previous ledger was closed. */
parent_close_time: number
/**
* Unique identifying hash of the ledger that came immediately before this
* one.
*/
parent_hash: string
/** Total number of XRP drops in the network, as a quoted integer. */
total_coins: string
/** Hash of the transaction information included in this ledger, as hex. */
transaction_hash: string
/**
* Transactions applied in this ledger version. By default, members are the
* transactions' identifying Hash strings. If the request specified expand as
* true, members are full representations of the transactions instead, in
* either JSON or binary depending on whether the request specified binary
* as true.
*/
transactions?: Array<Transaction & { metaData?: TransactionMetadata }>
}

https://xrpl.org/resources/dev-tools/websocket-api-tool#ledger

{
  "result": {
    "ledger_hash": "45008B805A9BCB7ABDD7D86C18936315AB55DA9DE0C4CB4C2210E45ECF244C81",
    "ledger_index": 88979737,
    "validated": true,
    "ledger": {
      "account_hash": "E50310BFE7B3BE4C03183167AC1307BD8CFAAAFCF13E3DE8D41A7614F7D6FF64",
      "close_flags": 0,
      "close_time": 772812072,
      "close_time_human": "2024-Jun-27 14:01:12.000000000 UTC",
      "close_time_resolution": 10,
      "close_time_iso": "2024-06-27T14:01:12Z",
      "ledger_hash": "45008B805A9BCB7ABDD7D86C18936315AB55DA9DE0C4CB4C2210E45ECF244C81",
      "parent_close_time": 772812071,
      "parent_hash": "3FCE0CC3ED85BD0CD9B00619D15E48AD8C725007D7030C5950F11B50E6139677",
      "total_coins": "99987462169597155",
      "transaction_hash": "A213F2F2C3D61BEB09AB39955FF3796B9F05033DD358F3076C9CC407A5A272DB",
      "ledger_index": "88979737",
      "closed": true
    }
  },
  "status": "success",
  "type": "response",
  "warnings": [
    {
      "id": 2001,
      "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"
    }
  ]
}
@tequdev tequdev changed the title Response of ledger command missing close_time_iso field Response of ledger command missing close_time_iso field Jun 27, 2024
@mvadari
Copy link
Collaborator

mvadari commented Sep 17, 2024

It looks like it's also missing in the docs, could you open an issue there too? @tequdev

@mvadari mvadari linked a pull request Sep 17, 2024 that will close this issue
2 tasks
@mvadari mvadari linked a pull request Sep 17, 2024 that will close this issue
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants