Class: Identities
api/client/Identities.Identities
Handles all Identity related functionality
Methods
allowIdentityToCreatePortfolios
▸ allowIdentityToCreatePortfolios(args
, opts?
): Promise
<GenericPolymeshTransaction
<void
, void
>>
Gives permission to the Identity to create Portfolios on behalf of the signing Identity
Parameters
Name | Type |
---|---|
args | AllowIdentityToCreatePortfoliosParams |
opts? | ProcedureOpts |
Returns
Promise
<GenericPolymeshTransaction
<void
, void
>>
Throws
if
- the provided Identity already has permissions to create portfolios for signing Identity
- the provided Identity does not exist
Note
this method is of type ProcedureMethod, which means you can call allowIdentityToCreatePortfolios.checkAuthorization on it to see whether the signing Account and Identity have the required roles and permissions to run it
Defined in
attestPrimaryKeyRotation
▸ attestPrimaryKeyRotation(args
, opts?
): Promise
<GenericPolymeshTransaction
<AuthorizationRequest
, AuthorizationRequest
>>
Get CDD Provider's attestation to change primary key
Parameters
Name | Type |
---|---|
args | AttestPrimaryKeyRotationParams |
opts? | ProcedureOpts |
Returns
Promise
<GenericPolymeshTransaction
<AuthorizationRequest
, AuthorizationRequest
>>
Note
the transaction signer must be a CDD provider
Note
this creates an Authorization Requests which have to be accepted by the targetAccount
along with the authorization for RotatingPrimaryKey
.
An Account or Identity can fetch its pending Authorization Requests by calling authorizations.getReceived.
Also, an Account or Identity can directly fetch the details of an Authorization Request by calling authorizations.getOne
Note
required role:
- Customer Due Diligence Provider
Note
this method is of type ProcedureMethod, which means you can call attestPrimaryKeyRotation.checkAuthorization on it to see whether the signing Account and Identity have the required roles and permissions to run it