Class: AssetPermissions
api/entities/Identity/AssetPermissions.AssetPermissions
Handles all Asset Permissions (External Agents) related functionality on the Identity side
Hierarchy
-
Namespace
<Identity
>↳
AssetPermissions
Methods
checkPermissions
▸ checkPermissions(args
): Promise
<CheckPermissionsResult
<Identity
>>
Check whether this Identity has specific transaction Permissions over an Asset
Parameters
Name | Type |
---|---|
args | Object |
args.asset | string | BaseAsset |
args.transactions | null | TxTag [] |
Returns
Promise
<CheckPermissionsResult
<Identity
>>
Defined in
api/entities/Identity/AssetPermissions.ts:133
enabledAt
▸ enabledAt(«destructured»
): Promise
<null
| EventIdentifier
>
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
Parameters
Name | Type |
---|---|
«destructured» | Object |
› asset | string | Asset |
Returns
Promise
<null
| EventIdentifier
>
Note
uses the middlewareV2
Note
there is a possibility that the data is not ready by the time it is requested. In that case, null
is returned
Defined in
api/entities/Identity/AssetPermissions.ts:324
get
▸ get(): Promise
<AssetWithGroup
[]>
Retrieve all the Assets over which this Identity has permissions, with the corresponding Permission Group