getTransactionStatus

Fetch transaction status.

This function returns the status for a specific transaction.

venlyConnect.api.getTransactionStatus("0xe95cfd4c68e4b43f60adb8a97dc10264ad0046518946a768d980ee454e492645", "ETHEREUM");

📘

🧙 Returns UNKNOWN when the specific chain is not supported.

Signature:

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

Returns:

Promise<TxStatusResult>
{
    status: 'UNKNOWN' | 'PENDING' | 'FAILED' | 'SUCCEEDED'
}

Parameters:

ParameterRequiredDescription
transactionHashTrueTransaction hash
secretTypeTrueBlockchain related to the transaction hash

Example:

venlyConnect.api.getTransactionStatus("0xe95cfd4c68e4b43f60adb8a97dc10264ad0046518946a768d980ee454e492645", "ETHEREUM");

📘

🧙 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

📘