Permissions
Last updated
Last updated
Permissions a Secondary Key has over the Identity. A null value means the key has all permissions of that type (i.e. if assets
is null, the key has permissions over all of the Identity's Assets) Handles all Asset Permissions related functionality
Namespace‹›
↳ Permissions
Assets over which this key has permissions
Protected
context• context: Context
Inherited from void
Protected
parentInherited from void
list of Transaction Groups this key can execute. Having permissions over a TxGroup means having permissions over every TxTag in said group. Partial group permissions are not covered by this value. For a full picture of transaction permissions, see the transactions
property
NOTE: If transactions is null, ignore this value
Transactions this key can execute
Create a Permission Group for this Asset. Identities can be assigned to Permission Groups as agents. Agents assigned to a Permission Group have said group's permissions over the Asset
Parameters:
Retrieve a list of agents (Identities which have permissions over the Asset) and their respective Permission Groups
Retrieve a single Permission Group by its ID (or type). Passing an ID will fetch a Custom Permission Group, while passing a type will fetch a Known Permission Group
throws
if there is no Permission Group with the passed ID
Parameters:
▪ args: object
Parameters:
▪ args: object
Retrieve all Permission Groups of this Asset
Invite an Identity to be an agent with permissions over this Asset
Parameters:
Revoke an agent's permissions over this Asset
Parameters:
• assets: ‹› | null
Defined in
Defined in
• parent:
Defined in
• portfolios: ‹ | › | null
Defined in
• transactionGroups: []
Defined in
• transactions: | null
Defined in
▸ createGroup(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
Name | Type |
---|
Returns: Promise‹‹››
▸ getAgents(): Promise‹[]›
Defined in
Returns: Promise‹[]›
▸ getGroup(args
: object): Promise‹›
Defined in
Name | Type |
---|
Returns: Promise‹›
▸ getGroup(args
: object): Promise‹›
Defined in
Name | Type |
---|
Returns: Promise‹›
▸ getGroups(): Promise‹›
Defined in
Returns: Promise‹›
▸ inviteAgent(args
: , opts?
: ): Promise‹‹››
Defined in
note
this will create an which has to be accepted by the target
Identity. An or can fetch its pending Authorization Requests by calling . Also, an Account or Identity can directly fetch the details of an Authorization Request by calling
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
Name | Type |
---|
Returns: Promise‹‹››
▸ removeAgent(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
Name | Type |
---|
Returns: Promise‹‹void››
| BigNumber |
|
|
|
|
|
|
|