AR.IO SDKANT Contracts
Controllers
addController()
Adds a new controller to the list of approved controllers on the ANT. Controllers can set records and change the ticker and name of the ANT process.
Note: Requires signer
to be provided on ANT.init
to sign the transaction.
const { id: txId } = await ant.addController(
{ controller: 'aGzM_yjralacHIUo8_nQXMbh9l1cy0aksiL_x9M359f' },
// optional additional tags
{ tags: [{ name: 'App-Name', value: 'My-Awesome-App' }] },
);
removeController()
Removes a controller from the list of approved controllers on the ANT.
Note: Requires signer
to be provided on ANT.init
to sign the transaction.
const { id: txId } = await ant.removeController(
{ controller: 'aGzM_yjralacHIUo8_nQXMbh9l1cy0aksiL_x9M359f' },
// optional additional tags
{ tags: [{ name: 'App-Name', value: 'My-Awesome-App' }] },
);
How is this guide?