Marketplace has launched, further enabling blockchain developers! Learn more

Contents

avm.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/X"
  );
  const params = {
    "tx": "6sTENqXfk3gahxkJbEPsmX9eJTEFZRSRw83cRJqoHWBiaeAhVbz9QV4i6SLd6Dek4eLsojeR8FbT3arFtsGz9ycpHFaWHLX69edJPEmj2tPApsEqsFd7wDVp7fFxkG6HmySR",
    "encoding": "cb58",
  };
  const result = await provider.send("avm.issueTx", params);
  console.log(result);
})();
Ready to get started? Create a free account