getInfo

getInfo is a method on the ANT class that retrieves the information of the ANT process.

getInfo does not require authentication.

Parameters

getInfo does not accept 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": "ANT-ARDRIVE",
  "description": "This is the ANT for the ArDrive decentralized web app.",
  "keywords": ["File-sharing", "Publishing", "dApp"],
  "owner": "QGWqtJdLLgm2ehFWiiPzMaoFLD50CnGuzZIPEdoDRGQ"
}