getInfo

getInfo is a method on the ANT class that retrieves general information about the ANT process, including name, ticker, denomination, and other metadata.

getInfo does not require authentication.

Parameters

The getInfo method does not accept any parameters.

Examples

getInfo

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

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

  console.log(info);
}

main();

Output

{
  "Name": "ArDrive",
  "Ticker": "ARDRIVE",
  "Denomination": 0,
  "Logo": "Sie_26dvgyok0PZD_-iQAFOhOd5YxDTkczOLoqTTL_A",
  "TotalSupply": 1,
  "Handlers": ["_eval", "_default", "transfer", "balance", "balances"]
}