addController

addController is a method on the ANT class that adds a new controller to the ANT's list of approved controllers. Controllers have permissions to set records and modify the ANT process's ticker and name.

addController requires authentication.

Examples

addController

const { id: txId } = await ant.addController({
    controller: 'aGzM_yjralacHIUo8_nQXMbh9l1cy0aksiL_x9M359f'
});

Parameters

ParameterTypeDescriptionOptional
controllerstring - WalletAddress

The public wallet address of the controller to be added

false
tagsarray

An array of GQL tag objects to attach to the transfer AO message

true

Was this page helpful?