Marketplace has launched, further enabling blockchain developers! Learn more

Contents

avax.issueTx 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. tx - String - The signed transaction (typically signed with a library, using your private key).
  2. encoding - String (optional) - The encoding format to use. Can be either cb58 or hex. Defaults to cb58.

Returns:

  1. txID - String - The transaction hash, or the zero hash if the transaction is not yet available.

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 = { "tx": "0x00", "encoding": "hex" };
  const result = await provider.send("avax.issueTx", params);
  console.log(result);
})();
Ready to get started? Create a free account