Marketplace has launched, further enabling blockchain developers! Learn more

Contents

avax.getAtomicTxStatus RPC method

The API credit value for this method is 1 . To learn more about API credits and each method's value, visit the API Credits page.

Parameters:

  1. txID - String - The transaction ID. It should be in cb58 format.

Returns:

  1. status - string - status is one of the following:

    Accepted - string - The transaction is (or will be) accepted by every node.

    Processing - string - The transaction is being voted on by this node.

    Rejected - string - The transaction will never be accepted by any node in the network.

    Unknown - string - The transaction hasn’t been seen by this node.

  2. blockHeight - String - Returned when status is accepted.

Code Examples:

const ethers = require("ethers");

(async () => {
  const provider = new ethers.providers.JsonRpcProvider(
    "http://sample-endpoint-name.network.quiknode.pro/token-goes-here/ext/bc/C/avax"
  );
  const params = {
    "txID": "n1D9UkjiryEBtW8qznD1TDkGEuYRFj5tLaS8NhVpMLYsx1FHa",
  };
  const result = await provider.send("avax.getAtomicTxStatus", params);
  console.log(result);
})();
Ready to get started? Create a free account