GetTransactionResponse class

Response when polling the rpc server to find out if a transaction has been completed. See https://soroban.stellar.org/api/methods/getTransaction

Inheritance

Constructors

GetTransactionResponse(Map<String, dynamic> jsonResponse)
GetTransactionResponse.fromJson(Map<String, dynamic> json)
factory

Properties

applicationOrder int?
(optional) The index of the transaction among all transactions included in the ledger. This field is only present if status is SUCCESS or FAILED.
read / write
createdAt String?
(optional) The unix timestamp of when the transaction was included in the ledger. This field is only present if status is SUCCESS or FAILED.
read / write
envelopeXdr String?
(optional) A base64 encoded string of the raw TransactionEnvelope XDR struct for this transaction.
read / write
error SorobanRpcErrorResponse?
read / writeinherited
feeBump bool?
(optional) Indicates whether the transaction was fee bumped. This field is only present if status is SUCCESS or FAILED.
read / write
hashCode int
The hash code for this object.
read-onlyinherited
isErrorResponse bool
read-onlyinherited
jsonResponse Map<String, dynamic>
read / writeinherited
latestLedger String?
The latest ledger known to Soroban-RPC at the time it handled the getTransaction() request.
read / write
latestLedgerCloseTime String?
The unix timestamp of the close time of the latest ledger known to Soroban-RPC at the time it handled the getTransaction() request.
read / write
ledger String?
(optional) The sequence of the ledger which included the transaction. This field is only present if status is SUCCESS or FAILED.
read / write
oldestLedger String?
The oldest ledger ingested by Soroban-RPC at the time it handled the getTransaction() request.
read / write
oldestLedgerCloseTime String?
The unix timestamp of the close time of the oldest ledger ingested by Soroban-RPC at the time it handled the getTransaction() request.
read / write
resultMetaXdr String?
(optional) A base64 encoded string of the raw TransactionMeta XDR struct for this transaction.
read / write
resultXdr String?
(optional) A base64 encoded string of the raw TransactionResult XDR struct for this transaction. This field is only present if status is SUCCESS or FAILED.
read / write
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
status String?
The current status of the transaction by hash, one of: SUCCESS, NOT_FOUND, FAILED
read / write

Methods

getCreatedContractId() String?
Extracts the contract is from the response if the transaction created a contract
getResultValue() XdrSCVal?
Extracts the result value from the first entry on success
getWasmId() String?
Extracts the wasm id from the response if the transaction installed a contract
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

convertToInt(dynamic src) int?

Constants

STATUS_FAILED → const String
"FAILED"
STATUS_NOT_FOUND → const String
"NOT_FOUND"
STATUS_SUCCESS → const String
"SUCCESS"