api_entities_Identity_AssetPermissions.AssetPermissions
Last updated
Was this helpful?
Last updated
Was this helpful?
/ / / AssetPermissions
.AssetPermissions
Handles all Asset Permissions (External Agents) related functionality on the Identity side
Namespace
<>
↳ AssetPermissions
Check whether this Identity has specific transaction Permissions over an Asset
Parameters
args
Object
args.asset
args.transactions
null
| TxTag
[]
Returns
Defined in
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
__namedParameters.asset
Returns
Defined in
Retrieve all the Assets over which this Identity has permissions, with the corresponding Permission Group
Returns
Defined in
Retrieve this Identity's Permission Group for a specific Asset
Parameters
__namedParameters
Object
__namedParameters.asset
Returns
Defined in
Retrieve all Events triggered by Operations this Identity has performed on a specific Asset
note
uses the middleware
note
supports pagination
Parameters
opts
Object
-
opts.asset
-
opts.eventId?
EventIdEnum
filters results by event
opts.moduleId?
ModuleIdEnum
filters results by module
opts.size?
BigNumber
page size
opts.start?
BigNumber
page offset
Returns
Defined in
â–¸ hasPermissions(args
): Promise
<boolean
>
Check whether this Identity has specific transaction Permissions over an Asset
deprecated
in favor of checkPermissions
Parameters
args
Object
args.asset
args.transactions
null
| TxTag
[]
Returns
Promise
<boolean
>
Defined in
Assign this Identity to a different Permission Group for a given Asset
Parameters
args
opts?
Returns
Defined in
â–¸ waive(args
, opts?
): Promise
<TransactionQueue
<void
, void
, unknown
[][]>>
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?
Returns
Promise
<TransactionQueue
<void
, void
, unknown
[][]>>
Defined in
â–¸ checkPermissions(args
): Promise
<<>>
string
|
Promise
<<>>
â–¸ enabledAt(__namedParameters
): Promise
<null
| >
string
|
Promise
<null
| >
â–¸ get(): Promise
<[]>
Promise
<[]>
â–¸ getGroup(__namedParameters
): Promise
< | >
string
|
Promise
< | >
â–¸ getOperationHistory(opts
): Promise
<<>>
string
|
Promise
<<>>
string
|
â–¸ setGroup(args
, opts?
): Promise
<TransactionQueue
< | , | , unknown
[][]>>
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
Promise
<TransactionQueue
< | , | , unknown
[][]>>
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