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

TransactionStream missing close_time_iso field #2714

Closed
tequdev opened this issue Jun 27, 2024 · 0 comments · Fixed by #2779
Closed

TransactionStream missing close_time_iso field #2714

tequdev opened this issue Jun 27, 2024 · 0 comments · Fixed by #2779

Comments

@tequdev
Copy link
Contributor

tequdev commented Jun 27, 2024

export interface TransactionStream extends BaseStream {
status: string
type: 'transaction'
/** String Transaction result code. */
engine_result: string
/** Numeric transaction response code, if applicable. */
engine_result_code: number
/** Human-readable explanation for the transaction response. */
engine_result_message: string
/**
* The ledger index of the current in-progress ledger version for which this
* transaction is currently proposed.
*/
ledger_current_index?: number
/** The identifying hash of the ledger version that includes this transaction. */
ledger_hash?: string
/** The ledger index of the ledger version that includes this transaction. */
ledger_index?: number
/**
* The transaction metadata, which shows the exact outcome of the transaction
* in detail.
*/
meta?: TransactionMetadata
/** The definition of the transaction in JSON format. */
transaction: Transaction & ResponseOnlyTxInfo
/**
* If true, this transaction is included in a validated ledger and its
* outcome is final. Responses from the transaction stream should always be
* validated.
*/
validated?: boolean
warnings?: Array<{ id: number; message: string }>
}

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

with

{
  "id": "Example watch one account and all new ledgers",
  "command": "subscribe",
  "streams": [
    "transactions"
  ]
}
{
  "transaction": {
    "Account": "rpiFwLYi6Gb1ESHYorn2QG1WU5vw2u4exQ",
    "Fee": "10",
    "Flags": 0,
    "LastLedgerSequence": 88979521,
    "OfferSequence": 87142351,
    "Sequence": 0,
    "SigningPubKey": "ED4A8371720A1D404927F0B32DD49BDE4F8E2A8177D027482492AEE4F3C5045834",
    "TicketSequence": 87142355,
    "TransactionType": "OfferCancel",
    "TxnSignature": "6EBFB33ADCA039B8BCAAFA9080AB149C77334BB371F70B8DF06D038D8E1DA2867A52C690C0E2FE3E0A88EEEB101F3CD94AE20B4C471D979755759962B165E009",
    "hash": "1F04EA32F37227FD40E48151964EF46316C165E90E72E093E977F4DE594F0987",
    "date": 772811181
  },
  "meta": {
    "AffectedNodes": [
      {
        "ModifiedNode": {
          "FinalFields": {
            "Flags": 0,
            "IndexNext": "26a7",
            "IndexPrevious": "0",
            "Owner": "rpiFwLYi6Gb1ESHYorn2QG1WU5vw2u4exQ",
            "RootIndex": "F6ED7E4F8D3EAE3D246D421803B101F4C204AA91046C647121563B6F7DFD9310"
          },
          "LedgerEntryType": "DirectoryNode",
          "LedgerIndex": "2539B1BC3416189EDF08EC6FA3FD50CF7486840958FFB82B97F0D9C83268956E"
        }
      },
      {
        "ModifiedNode": {
          "FinalFields": {
            "Flags": 0,
            "IndexPrevious": "26ab",
            "Owner": "rpiFwLYi6Gb1ESHYorn2QG1WU5vw2u4exQ",
            "RootIndex": "F6ED7E4F8D3EAE3D246D421803B101F4C204AA91046C647121563B6F7DFD9310"
          },
          "LedgerEntryType": "DirectoryNode",
          "LedgerIndex": "57810DA107F2F9C57F254BBF1375C631F7F984BFF3E73AF2F07830C73966410F"
        }
      },
      {
        "DeletedNode": {
          "FinalFields": {
            "Account": "rpiFwLYi6Gb1ESHYorn2QG1WU5vw2u4exQ",
            "BookDirectory": "EC2927ADC0E519C170C4F169B7003F1A65A59C7410AD28865B06E26FE199FB10",
            "BookNode": "0",
            "Flags": 65536,
            "OwnerNode": "26ac",
            "PreviousTxnID": "BB08F10623795F1C9AC7605D955C537589FA495571ECE6DDFE91884B231B5AD0",
            "PreviousTxnLgrSeq": 88979486,
            "Sequence": 87142351,
            "TakerGets": {
              "currency": "EUR",
              "issuer": "raZdZ9eUZqHBo34mzZES39NP2PatznYP1d",
              "value": "186.515"
            },
            "TakerPays": "361432500"
          },
          "LedgerEntryType": "Offer",
          "LedgerIndex": "602FBA235986C31CB0872B161D5E0B9F2D9D40CEB576E32FA94665CC59F6C128"
        }
      },
      {
        "ModifiedNode": {
          "FinalFields": {
            "Account": "rpiFwLYi6Gb1ESHYorn2QG1WU5vw2u4exQ",
            "Balance": "8170048810",
            "Flags": 0,
            "OwnerCount": 154,
            "Sequence": 87142509,
            "TicketCount": 151
          },
          "LedgerEntryType": "AccountRoot",
          "LedgerIndex": "AB4F967F07A17B276A162D2BE831BB2B4BB7D28C58A71E2B47040114CE4599AE",
          "PreviousFields": {
            "Balance": "8170048820",
            "OwnerCount": 156,
            "TicketCount": 152
          },
          "PreviousTxnID": "1DD5C2F504141AB8B00F79DB9A1A091D98501389542C33CE016AFB45B377FE87",
          "PreviousTxnLgrSeq": 88979503
        }
      },
      {
        "DeletedNode": {
          "FinalFields": {
            "Account": "rpiFwLYi6Gb1ESHYorn2QG1WU5vw2u4exQ",
            "Flags": 0,
            "OwnerNode": "26a6",
            "PreviousTxnID": "0B6FE8AB7B37A88C494693E520AE4968112C44AA0B5EC20F9AB738BCDB8CBDEB",
            "PreviousTxnLgrSeq": 88979190,
            "TicketSequence": 87142355
          },
          "LedgerEntryType": "Ticket",
          "LedgerIndex": "CD7B539FF7EFB41AC031BA56659FEBC8018FB4A2A48A725F02DEE3ACA600A15E"
        }
      },
      {
        "DeletedNode": {
          "FinalFields": {
            "ExchangeRate": "5b06e26fe199fb10",
            "Flags": 0,
            "RootIndex": "EC2927ADC0E519C170C4F169B7003F1A65A59C7410AD28865B06E26FE199FB10",
            "TakerGetsCurrency": "0000000000000000000000004555520000000000",
            "TakerGetsIssuer": "3D04742494FF49328C57AD893BD2A02263416728",
            "TakerPaysCurrency": "0000000000000000000000000000000000000000",
            "TakerPaysIssuer": "0000000000000000000000000000000000000000"
          },
          "LedgerEntryType": "DirectoryNode",
          "LedgerIndex": "EC2927ADC0E519C170C4F169B7003F1A65A59C7410AD28865B06E26FE199FB10"
        }
      }
    ],
    "TransactionIndex": 26,
    "TransactionResult": "tesSUCCESS"
  },
  "type": "transaction",
  "validated": true,
  "status": "closed",
  "close_time_iso": "2024-06-27T13:46:21Z",
  "ledger_index": 88979503,
  "ledger_hash": "F730B80D09BE5982E7566BBAE918F9406A2554858DA3C88CB56E6E9A86FABC0A",
  "engine_result_code": 0,
  "engine_result": "tesSUCCESS",
  "engine_result_message": "The transaction was applied. Only final in a validated ledger."
}
@tequdev tequdev changed the title interface TransactionStream missing close_time_iso field TransactionStream missing close_time_iso` field Jun 27, 2024
@tequdev tequdev changed the title TransactionStream missing close_time_iso` field TransactionStream missing close_time_iso` field Jun 27, 2024
@tequdev tequdev changed the title TransactionStream missing close_time_iso` field TransactionStream missing close_time_iso` field Jun 27, 2024
@tequdev tequdev changed the title TransactionStream missing close_time_iso` field TransactionStream missing close_time_iso field Jun 27, 2024
@tequdev tequdev changed the title TransactionStream missing close_time_iso field TransactionStream missing close_time_iso field Jun 27, 2024
@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
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant