Open tequdev opened 3 months ago
https://github.com/XRPLF/xrpl.js/blob/a0678857a16e4e11e37bf369b41e5c73a5c4f1a3/packages/xrpl/src/models/ledger/Ledger.ts#L11-L65
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" } ] }
It looks like it's also missing in the docs, could you open an issue there too? @tequdev
https://github.com/XRPLF/xrpl.js/blob/a0678857a16e4e11e37bf369b41e5c73a5c4f1a3/packages/xrpl/src/models/ledger/Ledger.ts#L11-L65
https://xrpl.org/resources/dev-tools/websocket-api-tool#ledger