Transaction Status with the SDK
transactions.getTransactionStatus()
Get Transaction Status
This function is used to get the status of a transaction. It takes a transactionHash
, reference
, and blockchain
as parameters and returns a TransactionStatusResponse
object.
Please note that both the transactionHash
and the reference
are optional, but at least one should be passed to Wallaby. This gives you more flexibility into how to get the transaction data.
Function Parameters
transactionHash
string
Optional, The transaction hash from the blockchain.
reference
string
A UUID unique to the transaction that links it with external systems.
blockchain
string
The name of the blockchain.
Function Response
status
PENDING
| SUCCESSFUL
| FAILED
The status of the transaction
transactionHash
string
The hash of the transaction
reference
string
A reference identifier for the transaction
assetSymbol
string
The symbol of the asset involved in the transaction
transactionValue
string
The value of the transaction
fromAddress
string
The address from which the transaction originated
toAddress
string
The address to which the transaction is sent
chain
BlockchainName
The name of the blockchain on which the transaction occurred
fee
string
The fee paid for the transaction
nonce
number
The nonce of the transaction
timestamp
number
Transaction time in UNIX timestamp, seconds since EPOCH.
blockNumber
number
The number of the block in which the transaction was included
memo
string
A memo attached to the transaction.
origins
Array
(BTC transactions only) The origins of the UTXO funds involved in the transaction
recipients
Array
(BTC transactions only)
The recipients of the UTXO funds involved in the transaction
Example
Last updated