AssetPermissions
Last updated
Was this helpful?
Last updated
Was this helpful?
Handles all Asset Permissions (External Agents) related functionality on the Identity side
Namespace‹›
↳ AssetPermissions
Protected
context• context: Context
Inherited from void
Protected
parentInherited from void
Check whether this Identity has specific transaction Permissions over an Asset
Parameters:
â–ª args: object
asset
transactions
TxTag[] | null
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 Asset
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
asset
Retrieve all the Assets over which this Identity has permissions, with the corresponding Permission Group
Retrieve this Identity's Permission Group for a specific Asset
Parameters:
â–ª __namedParameters: object
asset
Retrieve all Events triggered by Operations this Identity has performed on a specific Asset
note
uses the middleware
note
supports pagination
Parameters:
â–ª opts: object
asset
-
eventId?
EventId
filters results by event
moduleId?
ModuleId
filters results by module
size?
BigNumber
page size
start?
BigNumber
page offset
â–¸ hasPermissions(args
: object): Promise‹boolean›
Check whether this Identity has specific transaction Permissions over an Asset
deprecated
in favor of checkPermissions
Parameters:
â–ª args: object
asset
transactions
TxTag[] | null
Returns: Promise‹boolean›
Assign this Identity to a different Permission Group for a given Asset
Parameters:
args
opts?
Abdicate from the current Permissions Group for a given Asset. This means that this Identity will no longer have any permissions over said Asset
Parameters:
args
opts?
Defined in
• parent:
Defined in
â–¸ checkPermissions(args
: object): Promise‹‹››
Defined in
| string
Returns: Promise‹‹››
â–¸ 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 on it to see whether the signing Account and Identity have the required roles and permissions to run it
Returns: Promise‹‹ | ››
â–¸ waive(args
: , opts?
: ): Promise‹‹void››
Defined in
note
this method is of type , which means you can call on it to see whether the signing Account and Identity have the required roles and permissions to run it
Returns: Promise‹‹void››