getTransactionStatus
Fetch transaction status
This function returns the status for a specific transaction.
1
venlyConnect.api.getTransactionStatus("0xe95cfd4c68e4b43f60adb8a97dc10264ad0046518946a768d980ee454e492645", "ETHEREUM");
Copied!
πŸ§™ Returns UNKNOWN when the specific chain is not supported.

Signature

1
venlyConnect.api.getTransactionStatus(transactionHash: string, secretType: SecretType): Promise<TxStatusResult>
Copied!

Returns

1
Promise<TxStatusResult>
Copied!
1
{
2
status: 'UNKNOWN' | 'PENDING' | 'FAILED' | 'SUCCEEDED'
3
}
Copied!

Parameters

Parameter
Required
Description
transactionHash
True
Transaction hash
​secretType​
True
Blockchain related to the transaction hash

Example

1
venlyConnect.api.getTransactionStatus("0xe95cfd4c68e4b43f60adb8a97dc10264ad0046518946a768d980ee454e492645", "ETHEREUM");
Copied!
πŸ§™ Using the network parameter, the node to which the transaction is sent can be set manually. It allows you to submit a transaction to any mainnet or testnet node of your choosing, public or private. ( Ethereum only)

Object Types

​
Last modified 2mo ago