-
Notifications
You must be signed in to change notification settings - Fork 11
api.client.Identities.Identities
api/client/Identities.Identities
Handles all Identity related functionality
- attestPrimaryKeyRotation
- createPortfolio
- createPortfolios
- getIdentity
- isIdentityValid
- registerIdentity
- rotatePrimaryKey
▸ attestPrimaryKeyRotation(args
, opts?
): Promise
<GenericPolymeshTransaction
<AuthorizationRequest
, AuthorizationRequest
>>
Get CDD Provider's attestation to change primary key
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
Name | Type |
---|---|
args |
AttestPrimaryKeyRotationParams |
opts? |
ProcedureOpts |
Promise
<GenericPolymeshTransaction
<AuthorizationRequest
, AuthorizationRequest
>>
▸ createPortfolio(args
, opts?
): Promise
<GenericPolymeshTransaction
<NumberedPortfolio
[], NumberedPortfolio
>>
Create a new Portfolio under the ownership of the signing Identity
Note
this method is of type ProcedureMethod, which means you can call createPortfolio.checkAuthorization on it to see whether the signing Account and Identity have the required roles and permissions to run it
Name | Type |
---|---|
args |
Object |
args.name |
string |
opts? |
ProcedureOpts |
Promise
<GenericPolymeshTransaction
<NumberedPortfolio
[], NumberedPortfolio
>>
▸ createPortfolios(args
, opts?
): Promise
<GenericPolymeshTransaction
<NumberedPortfolio
[], NumberedPortfolio
[]>>
Creates a set of new Portfolios under the ownership of the signing Identity
Note
this method is of type ProcedureMethod, which means you can call createPortfolios.checkAuthorization on it to see whether the signing Account and Identity have the required roles and permissions to run it
Name | Type |
---|---|
args |
Object |
args.names |
string [] |
opts? |
ProcedureOpts |
Promise
<GenericPolymeshTransaction
<NumberedPortfolio
[], NumberedPortfolio
[]>>
▸ getIdentity(args
): Promise
<Identity
>
Create an Identity instance from a DID
Throws
if there is no Identity with the passed DID
Name | Type |
---|---|
args |
Object |
args.did |
string |
Promise
<Identity
>
▸ isIdentityValid(args
): Promise
<boolean
>
Return whether the supplied Identity/DID exists
Name | Type |
---|---|
args |
Object |
args.identity |
string | Identity
|
Promise
<boolean
>
▸ registerIdentity(args
, opts?
): Promise
<GenericPolymeshTransaction
<Identity
, Identity
>>
Register an Identity, possibly with a CDD claim
Note
the transaction signer must be a CDD provider
Note
this may create Authorization Requests which have to be accepted by the targetAccount
.
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 registerIdentity.checkAuthorization on it to see whether the signing Account and Identity have the required roles and permissions to run it
Name | Type |
---|---|
args |
RegisterIdentityParams |
opts? |
ProcedureOpts |
Promise
<GenericPolymeshTransaction
<Identity
, Identity
>>
▸ rotatePrimaryKey(args
, opts?
): Promise
<GenericPolymeshTransaction
<AuthorizationRequest
, AuthorizationRequest
>>
Creates an Authorization to rotate primary key of the signing Identity by the targetAccount
Note
this creates an Authorization Requests which have to be accepted by the targetAccount
along with the optional CDD authorization generated by CDD provider attesting the rotation of primary key
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
this method is of type ProcedureMethod, which means you can call rotatePrimaryKey.checkAuthorization on it to see whether the signing Account and Identity have the required roles and permissions to run it
Name | Type |
---|---|
args |
RotatePrimaryKeyParams |
opts? |
ProcedureOpts |
Promise
<GenericPolymeshTransaction
<AuthorizationRequest
, AuthorizationRequest
>>
Entities
- Account
- Asset
- Authorization Request
- Checkpoint
- Checkpoint Schedule
- Corporate Action
- Corporate Action Base
- Custom Permission Group
- Default Portfolio
- Default Trusted Claim Issuer
- Dividend Distribution
- Entity
- Identity
- Instruction
- Known Permission Group
- Metadata Entry
- Multi Sig Proposal
- Numbered Portfolio
- Offering
- Permission Group
- Portfolio
- Subsidies
- Subsidy
- Ticker Reservation
- Venue
- Authorizations
- Types