xrpl.js
xrpl.js copied to clipboard
Response of `ledger` command missing transaction `hash` field
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": "5923B929EEB33D00110B30C5F731DB2B2C0701DF038BD20348B0D9F37247C5FB",
"ledger_index": 88980736,
"validated": true,
"ledger": {
"account_hash": "D87B9407406B9022707382BF91FBEC9E8667907B66F1E371E1CAF8E4DC2EC83D",
"close_flags": 0,
"close_time": 772815911,
"close_time_human": "2024-Jun-27 15:05:11.000000000 UTC",
"close_time_resolution": 10,
"close_time_iso": "2024-06-27T15:05:11Z",
"ledger_hash": "5923B929EEB33D00110B30C5F731DB2B2C0701DF038BD20348B0D9F37247C5FB",
"parent_close_time": 772815910,
"parent_hash": "394617C3B704D02376752EAF6A189A40F1F5AC00B3F02DB4F69FB638AAF4A24B",
"total_coins": "99987462039486395",
"transaction_hash": "92B9A4943AC7CF5C8742621E1DC527951B8862E5BE8D4292EF5847CB9DCDA593",
"ledger_index": "88980736",
"closed": true,
"transactions": [
{
"Account": "rLuiHsHsdFn4HscaGf4kR429bWmsj2wfBw",
"Fee": "12",
"Flags": 0,
"LastLedgerSequence": 88980749,
"Sequence": 0,
"SigningPubKey": "EDCC84393BB4993742B0DD43137EFDA09B62FF45FE0AA75A2780999AA64792F9DC",
"TakerGets": {
"currency": "4348495400000000000000000000000000000000",
"issuer": "rfoNKe1V8iXbPRhqF7FXgMWKrBc5crE2AE",
"value": "5174271.0330397"
},
"TakerPays": "82788232",
"TicketSequence": 87341452,
"TransactionType": "OfferCreate",
"TxnSignature": "60E538FC321278F22BE2D6EC29137443C2CAB657F1E1E51AA2A664A6FA313B90FA3A889C077DE16B71FCE79D9C644AA9A4DCDB681F8092B0C5F6B8CEE9B7DE0B",
"hash": "005AAAD149DC6148494988409E0375E357F122D6F7558A1DFA7F1E577C402894",
"metaData": {
"AffectedNodes": [
...
],
"TransactionIndex": 88,
"TransactionResult": "tecUNFUNDED_OFFER"
}
},
...