Get Transaction Status
Get the transaction status of a posted transaction
Last updated
Was this helpful?
Get the transaction status of a posted transaction
Last updated
Was this helpful?
There is a wait time involved between requesting to post a transaction on chain and it actually being posted.
The getTransactionStatus
functions provides the status for a given transaction on whether it has been successfully posted on chain or is amidst processing.
The function is called as follows:
The following params are available for this function and they must be passed in as an object:
transactionId: string
: The unique identification Id associated with a transaction.
environment: 'local' | 'mainnet'
: The environment on which the transaction was posted.
The function call returns the following data:
status: number
: The status
is an indicator on whether the transaction has been successfully processed. It must return the value 200
for the same.
confirmed: object
: The confirmed
object contains additional information regarding the successful processing of the transaction.
block_height: number
: The height or block number in which the transaction has been processed.
block_indep_hash: string
:
number_of_confirmations: number
: The number of blocks in the network that have been mined since processing of the given transaction.