ControllerCap
@iota/identity-wasm API documentation
Class: ControllerCap
A token that authenticates its bearer as a controller of a specific shared object.
Properties
id
readonlyid:string
Returns the ID of this ControllerCap.
controllerOf
readonlycontrollerOf:string
Returns the ID of the object this token controls.
canDelegate
readonlycanDelegate:boolean
Returns whether this controller is allowed to delegate its access to the controlled object.
Methods
delegate()
delegate(
recipient,permissions):any
If this token can be delegated, this function will return
a DelegationToken Transaction that will mint a new DelegationToken
and send it to recipient.
Parameters
recipient
string
permissions
undefined | null | DelegatePermissions
Returns
any