TokenPermissions
Last updated
Was this helpful?
Last updated
Was this helpful?
Handles all Token Permissions (External Agents) related functionality on the Identity side
Namespace‹›
↳ TokenPermissions
Protected
contextInherited from void
Protected
parentInherited from void
Retrieve the identifier data (block number, date and event index) of the event that was emitted when this Identity was enabled/added as an Agent with permissions over a specific Security Token
note
uses the middleware
note
there is a possibility that the data is not ready by the time it is requested. In that case, null
is returned
Parameters:
▪ __namedParameters: object
token
Retrieve all the Security Tokens over which this Identity has permissions, with the corresponding Permission Group
Retrieve this Identity's Permission Group for a specific Security Token
Parameters:
▪ __namedParameters: object
token
Retrieve all Events triggered by Operations this Identity has performed on a specific Security Token
note
uses the middleware
note
supports pagination
Parameters:
▪ opts: object
eventId?
EventId
filters results by event
moduleId?
ModuleId
filters results by module
size?
undefined | number
page size
start?
undefined | number
page offset
token
-
▸ hasPermissions(args
: object): Promise‹boolean›
Check whether this Identity has specific transaction Permissions over a Security Token
Parameters:
▪ args: object
token
transactions
TxTag[] | null
Returns: Promise‹boolean›
Assign this Identity to a different Permission Group for a given Security Token
Parameters:
args
opts?
Abdicate from the current Permissions Group for a given Security Token. This means that this Identity will no longer have any permissions over said Token
Parameters:
args
opts?
• context:
Defined in
• parent:
Defined in
▸ enabledAt(__namedParameters
: object): Promise‹ | null›
Defined in
string | ‹›
Returns: Promise‹ | null›
▸ get(): Promise‹[]›
Defined in
Returns: Promise‹[]›
▸ getGroup(__namedParameters
: object): Promise‹ | ›
Defined in
string | ‹›
Returns: Promise‹ | ›
▸ getOperationHistory(opts
: object): Promise‹‹››
Defined in
string |
Returns: Promise‹‹››
Defined in
| string
▸ setGroup(args
: , opts?
: ): Promise‹‹ | ››
Defined in
note
this method is of type , which means you can call setGroup.checkAuthorization
on it to see whether the Current Account has the required permissions to run it
Returns: Promise‹‹ | ››
▸ waive(args
: , opts?
: ): Promise‹‹void››
Defined in
note
this method is of type , which means you can call waive.checkAuthorization
on it to see whether the Current Account has the required permissions to run it
Returns: Promise‹‹void››