SubmitTransactionAsyncResponse

@Serializable
data class SubmitTransactionAsyncResponse(val hash: String, val txStatus: SubmitTransactionAsyncResponse.TransactionStatus, val errorResultXdr: String? = null, var httpResponseCode: Int = 0) : Response

Represents the response from the "Submit a Transaction Asynchronously" endpoint of Horizon API.

Unlike the synchronous submission, which blocks and waits for the transaction to be ingested in Horizon, this endpoint relays the response from Stellar Core directly back to the user.

See also

Constructors

Link copied to clipboard
constructor(hash: String, txStatus: SubmitTransactionAsyncResponse.TransactionStatus, errorResultXdr: String? = null, httpResponseCode: Int = 0)

Types

Link copied to clipboard

Transaction status values returned by async submission.

Properties

Link copied to clipboard
@SerialName(value = "error_result_xdr")
val errorResultXdr: String?

The XDR-encoded TransactionResult (only present if status is ERROR)

Link copied to clipboard
@SerialName(value = "hash")
val hash: String

The transaction hash

Link copied to clipboard
@Transient
var httpResponseCode: Int

The HTTP status code of the response (201, 409, 400, etc.)

Link copied to clipboard
@SerialName(value = "tx_status")
val txStatus: SubmitTransactionAsyncResponse.TransactionStatus

The status of the transaction submission