Skip to main content

ControllerCap

@iota/identity-wasm API documentation


Class: ControllerCap

A token that authenticates its bearer as a controller of a specific shared object.

Properties​

id​

readonly id: string

Returns the ID of this ControllerCap.


controllerOf​

readonly controllerOf: string

Returns the ID of the object this token controls.


canDelegate​

readonly canDelegate: 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