gethandlers

getHandlers is a method on the ANT class that retrieves the handlers supported by the ANT.

getHandlers does not require authentication.

Parameters

getHandlers does not accept parameters.

Examples

getHandlers

const { ANT } = require('@ar.io/sdk');

async function main() {
  const ant = ANT.init({ processId: "bh9l1cy0aksiL_x9M359faGzM_yjralacHIUo8_nQXM" });
  const handlers = await ant.getHandlers();

  console.log(handlers);
}

main();

Output

[
  "_eval",
  "_default",
  "transfer",
  "balance",
  "balances",
  "totalSupply",
  "info",
  "addController",
  "removeController",
  "controllers",
  "setRecord",
  "removeRecord",
  "record",
  "records",
  "setName",
  "setTicker",
  "initializeState",
  "state"
]