Marketplace has launched, further enabling blockchain developers! Learn more

Contents

avm.getTxStatus 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 - A specific transaction ID.

Returns:

  1. status - string - status is one of:

    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

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/X"
  );
  const params = {
    "txID": "2HHr7xUJgWiLESV7g8T3oWfWvdpWJXd4Hctj6U3KhzUN6EsgBG",
  };
  const result = await provider.send("avm.getTxStatus", params);
  console.log(result);
})();
Ready to get started? Create a free account