Skip to content
Permalink
master
Switch branches/tags
Go to file
 
 
Cannot retrieve contributors at this time
title order
The Transaction Object
10

import { ExampleResponse } from "components/ExampleResponse"; import { AttributeTable } from "components/AttributeTable";

When Horizon returns information about a transaction, it uses the following format:

  • ATTRIBUTE
    • DATA TYPE
    • DESCRIPTION
  • id
    • string
    • A unique identifier for this transaction.
  • paging_token
  • successful
    • boolean
    • Indicates if this transaction was successful or not.
  • hash
    • string
    • A hex-encoded SHA-256 hash of this transaction’s XDR-encoded form.
  • ledger
    • number
    • The sequence number of the ledger that this transaction was included in.
  • created_at
    • ISO8601 string
    • The date this transaction was created.
  • source_account
    • string
    • The account that originates the transaction.
  • source_account_sequence
    • string
    • The source account's sequence number that this transaction consumed.
  • fee_charged
    • number
    • The fee (in stroops) paid by the source account to apply this transaction to the ledger.
  • max_fee
    • number
    • The maximum fee (in stroops) that the source account was willing to pay.
  • operation_count
    • number
    • The number of operations contained within this transaction.
  • envelope_xdr
    • string
    • A base64 encoded string of the raw TransactionEnvelope XDR struct for this transaction.
  • result_xdr
    • string
    • A base64 encoded string of the raw TransactionResult XDR struct for this transaction.
  • result_meta_xdr
    • string
    • A base64 encoded string of the raw TransactionMeta XDR struct for this transaction
  • fee_meta_xdr
    • string
    • A base64 encoded string of the raw LedgerEntryChanges XDR struct produced by taking fees for this transaction.
  • memo
    • string
    • The optional memo attached to a transaction.
  • memo_type
    • string
    • The type of memo. Potential values include MEMO_TEXT, MEMO_ID, MEMO_HASH, MEMO_RETURN.
  • signatures
    • string
    • An array of signatures used to sign this transaction.
  • valid_after
    • RFC3339 date-time string
    • The date after which a transaction is valid. This field is deprecated in lieu of preconditions.time_bounds.min_time and will be removed in Horizon v3.
  • valid_before
    • RFC3339 date-time string
    • The date before which a transaction is valid. This field is deprecated in lieu of preconditions.time_bounds.max_time and will be removed in Horizon v3.
  • preconditions
    • object
    • A set of transaction preconditions affecting its validity.
      • time_bounds
        • object
        • The time range for which this transaction is valid, with bounds as unsigned 64-bit UNIX timestamps
          • min_time
            • string
            • the lower bound
          • max_time
            • string
            • the upper bound
      • ledger_bounds
        • object
        • The ledger range for which this transaction is valid, as unsigned 32-bit integers.
          • min_ledger
            • number
            • the lower bound
          • max_ledger
            • number
            • the upper bound
      • min_account_sequence
        • string
        • Containing a positive, signed 64-bit integer representing the lowest source account sequence number for which the transaction is valid.
      • min_account_sequence_age
        • number
        • The minimum duration of time (in seconds as an unsigned 64-bit integer) that must have passed since the source account's sequence number changed for the transaction to be valid.
      • min_account_sequence_ledger_gap
        • number
        • An unsigned 32-bit integer representing the minimum number of ledgers that must have closed since the source account's sequence number changed for the transaction to be valid.
      • extra_signers
        • array of strings
        • The list of up to two additional signers that must have corresponding signatures for this transaction to be valid.
{
  "memo": "298424",
  "_links": {
    "self": {
      "href": "https://horizon.stellar.org/transactions/132c440e984ab97d895f3477015080aafd6c4375f6a70a87327f7f95e13c4e31"
    },
    "account": {
      "href": "https://horizon.stellar.org/accounts/GCO2IP3MJNUOKS4PUDI4C7LGGMQDJGXG3COYX3WSB4HHNAHKYV5YL3VC"
    },
    "ledger": {
      "href": "https://horizon.stellar.org/ledgers/27956256"
    },
    "operations": {
      "href": "https://horizon.stellar.org/transactions/132c440e984ab97d895f3477015080aafd6c4375f6a70a87327f7f95e13c4e31/operations{?cursor,limit,order}",
      "templated": true
    },
    "effects": {
      "href": "https://horizon.stellar.org/transactions/132c440e984ab97d895f3477015080aafd6c4375f6a70a87327f7f95e13c4e31/effects{?cursor,limit,order}",
      "templated": true
    },
    "precedes": {
      "href": "https://horizon.stellar.org/transactions?order=asc\u0026cursor=120071205238677504"
    },
    "succeeds": {
      "href": "https://horizon.stellar.org/transactions?order=desc\u0026cursor=120071205238677504"
    }
  },
  "id": "132c440e984ab97d895f3477015080aafd6c4375f6a70a87327f7f95e13c4e31",
  "paging_token": "120071205238677504",
  "successful": true,
  "hash": "132c440e984ab97d895f3477015080aafd6c4375f6a70a87327f7f95e13c4e31",
  "ledger": 27956256,
  "created_at": "2020-01-27T22:13:17Z",
  "source_account": "GCO2IP3MJNUOKS4PUDI4C7LGGMQDJGXG3COYX3WSB4HHNAHKYV5YL3VC",
  "source_account_sequence": "64034663849209932",
  "fee_charged": 100,
  "max_fee": 100,
  "operation_count": 1,
  "envelope_xdr": "AAAAAJ2kP2xLaOVLj6DRwX1mMyA0mubYnYvu0g8OdoDqxXuFAAAAZADjfzAACzBMAAAAAQAAAAAAAAAAAAAAAF4vYIYAAAABAAAABjI5ODQyNAAAAAAAAQAAAAAAAAABAAAAAKdeYELovtcnTxqPEVsdbxHLMoMRalZsK7lo/+3ARzUZAAAAAAAAAADUFJPYAAAAAAAAAAHqxXuFAAAAQBpLpQyh+mwDd5nDSxTaAh5wopBBUaSD1eOK9MdiO+4kWKVTqSr/Ko3kYE/+J42Opsewf81TwINONPbY2CtPggE=",
  "result_xdr": "AAAAAAAAAGQAAAAAAAAAAQAAAAAAAAABAAAAAAAAAAA=",
  "result_meta_xdr": "AAAAAQAAAAIAAAADAaqUIAAAAAAAAAAAnaQ/bEto5UuPoNHBfWYzIDSa5tidi+7SDw52gOrFe4UAAkRg8uGCXADjfzAACzBLAAAAAAAAAAEAAAAAnaQ/bEto5UuPoNHBfWYzIDSa5tidi+7SDw52gOrFe4UAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAABAaqUIAAAAAAAAAAAnaQ/bEto5UuPoNHBfWYzIDSa5tidi+7SDw52gOrFe4UAAkRg8uGCXADjfzAACzBMAAAAAAAAAAEAAAAAnaQ/bEto5UuPoNHBfWYzIDSa5tidi+7SDw52gOrFe4UAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAABAAAABAAAAAMBqoicAAAAAAAAAACnXmBC6L7XJ08ajxFbHW8RyzKDEWpWbCu5aP/twEc1GQAAAAAAmwWMAaVkEgAAAC0AAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAEBqpQgAAAAAAAAAACnXmBC6L7XJ08ajxFbHW8RyzKDEWpWb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