Marketplace has launched, further enabling blockchain developers! Learn more


avm.getTx 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.


  1. txID - String - A specific transaction ID.
  2. encoding - String - The encoding parameter sets the format of the returned transaction. Can be, "cb58", "hex" or "json". Defaults to "cb58".


  1. tx - Object - The transaction object of the requested txID.
  2. encoding - string - The encoding format.

Code Examples:

const ethers = require("ethers");

(async () => {
  const provider = new ethers.providers.JsonRpcProvider(
  const params = {
    "txID": "9VBHzPDFeDBJGyhBbzakzXMHJnsYhyLEiSS6ee5AczR2oJcns",
    "encoding": "hex",
  const result = await provider.send("avm.getTx", params);
Ready to get started? Create a free account