TransactionResponse

@Serializable
data class TransactionResponse(val id: String, val pagingToken: String, val successful: Boolean, val hash: String, val ledger: Long, val createdAt: String, val sourceAccount: String, val accountMuxed: String? = null, val accountMuxedId: String? = null, val sourceAccountSequence: Long, val feeAccount: String, val feeAccountMuxed: String? = null, val feeAccountMuxedId: String? = null, val feeCharged: Long, val maxFee: Long, val operationCount: Int, val envelopeXdr: String? = null, val resultXdr: String? = null, val resultMetaXdr: String? = null, val feeMetaXdr: String? = null, val signatures: List<String>, val preconditions: TransactionResponse.Preconditions? = null, val feeBumpTransaction: TransactionResponse.FeeBumpTransaction? = null, val innerTransaction: TransactionResponse.InnerTransaction? = null, val memoType: String, val memoBytes: String? = null, val memoValue: String? = null, val links: TransactionResponse.Links) : Response, Pageable

Represents a transaction response from the Horizon API.

See also

Constructors

Link copied to clipboard
constructor(id: String, pagingToken: String, successful: Boolean, hash: String, ledger: Long, createdAt: String, sourceAccount: String, accountMuxed: String? = null, accountMuxedId: String? = null, sourceAccountSequence: Long, feeAccount: String, feeAccountMuxed: String? = null, feeAccountMuxedId: String? = null, feeCharged: Long, maxFee: Long, operationCount: Int, envelopeXdr: String? = null, resultXdr: String? = null, resultMetaXdr: String? = null, feeMetaXdr: String? = null, signatures: List<String>, preconditions: TransactionResponse.Preconditions? = null, feeBumpTransaction: TransactionResponse.FeeBumpTransaction? = null, innerTransaction: TransactionResponse.InnerTransaction? = null, memoType: String, memoBytes: String? = null, memoValue: String? = null, links: TransactionResponse.Links)

Types

Link copied to clipboard
@Serializable
data class FeeBumpTransaction(val hash: String, val signatures: List<String>)

FeeBumpTransaction is only present in a TransactionResponse if the transaction is a fee bump transaction or is wrapped by a fee bump transaction.

Link copied to clipboard
@Serializable
data class InnerTransaction(val hash: String, val signatures: List<String>, val maxFee: Long)

InnerTransaction is only present in a TransactionResponse if the transaction is a fee bump transaction or is wrapped by a fee bump transaction.

Link copied to clipboard
@Serializable
data class Links(val self: Link, val account: Link, val ledger: Link, val operations: Link, val effects: Link, val precedes: Link, val succeeds: Link)

HAL links connected to the transaction.

Link copied to clipboard
@Serializable
data class Preconditions(val timeBounds: TransactionResponse.Preconditions.TimeBounds? = null, val ledgerBounds: TransactionResponse.Preconditions.LedgerBounds? = null, val minAccountSequence: Long? = null, val minAccountSequenceAge: Long? = null, val minAccountSequenceLedgerGap: Long? = null, val extraSigners: List<String>? = null)

Preconditions of a transaction per CAP-21.

Properties

Link copied to clipboard
@SerialName(value = "account_muxed")
val accountMuxed: String?
Link copied to clipboard
@SerialName(value = "account_muxed_id")
val accountMuxedId: String?
Link copied to clipboard
@SerialName(value = "created_at")
val createdAt: String
Link copied to clipboard
@SerialName(value = "envelope_xdr")
val envelopeXdr: String?
Link copied to clipboard
@SerialName(value = "fee_account")
val feeAccount: String
Link copied to clipboard
@SerialName(value = "fee_account_muxed")
val feeAccountMuxed: String?
Link copied to clipboard
@SerialName(value = "fee_account_muxed_id")
val feeAccountMuxedId: String?
Link copied to clipboard
@SerialName(value = "fee_bump_transaction")
val feeBumpTransaction: TransactionResponse.FeeBumpTransaction?
Link copied to clipboard
@SerialName(value = "fee_charged")
val feeCharged: Long
Link copied to clipboard
@SerialName(value = "fee_meta_xdr")
val feeMetaXdr: String?
Link copied to clipboard
@SerialName(value = "hash")
val hash: String
Link copied to clipboard
@SerialName(value = "id")
val id: String
Link copied to clipboard
@SerialName(value = "inner_transaction")
val innerTransaction: TransactionResponse.InnerTransaction?
Link copied to clipboard
@SerialName(value = "ledger")
val ledger: Long
Link copied to clipboard
@SerialName(value = "_links")
val links: TransactionResponse.Links
Link copied to clipboard
@SerialName(value = "max_fee")
val maxFee: Long
Link copied to clipboard
@SerialName(value = "memo_bytes")
val memoBytes: String?
Link copied to clipboard
@SerialName(value = "memo_type")
val memoType: String
Link copied to clipboard
@SerialName(value = "memo")
val memoValue: String?
Link copied to clipboard
@SerialName(value = "operation_count")
val operationCount: Int
Link copied to clipboard
@SerialName(value = "paging_token")
open override val pagingToken: String

Returns the paging token (cursor) for this response. This token can be used to fetch the next page of results or resume streaming.

Link copied to clipboard
@SerialName(value = "preconditions")
val preconditions: TransactionResponse.Preconditions?
Link copied to clipboard
@SerialName(value = "result_meta_xdr")
val resultMetaXdr: String?
Link copied to clipboard
@SerialName(value = "result_xdr")
val resultXdr: String?
Link copied to clipboard
@SerialName(value = "signatures")
val signatures: List<String>
Link copied to clipboard
@SerialName(value = "source_account")
val sourceAccount: String
Link copied to clipboard
@SerialName(value = "source_account_sequence")
val sourceAccountSequence: Long
Link copied to clipboard
@SerialName(value = "successful")
val successful: Boolean