getControllers

getControllers is a method on the ANT class that retrieves the controllers of the configured ANT process.

getControllers does not require authentication.

Parameters

The getControllers method does not accept any parameters.

Examples

getControllers

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

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

  console.log(controllers);
}

main();

Output

["ccp3blG__gKUvG3hsGC2u06aDmqv4CuhuDJGOIg0jw4"]