The getTransactionStatus function allows developers and users to monitor the progress and finality of transactions, enhancing transparency and trust in application processes.

Expected parameters

  • taskId: The task id received after initiating the transaction through Aarc SDK.

Function call

let status = await aarcCoreSDK.getTransactionStatus(
    "REQUEST_ID"
);

Response

The response from the getTransactionStatus will be:

{
    "code": number,
    "data": {
        "txHash": string,
        "taskId": string,
        "txStatus": string,
        "createAt": number,
        "updatedAt": number,
        "fee": number
    },
    "message": string
}

Support

For additional queries contact support.