getOwner

getOwner is a method on the ANT class that retrieves the wallet address of the ANT process owner.

getOwner does not require authentication.

Parameters

The getOwner method does not accept any parameters.

Examples

getOwner

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

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

  console.log(owner);
}

main();

Output

"ccp3blG__gKUvG3hsGC2u06aDmqv4CuhuDJGOIg0jw4"