api_client_Identities.Identities
@polymeshassociation/polymesh-sdk / Modules / api/client/Identities / Identities
Class: Identities
api/client/Identities.Identities
Handles all Identity related functionality
Table of contents
Methods
Methods
createPortfolio
▸ createPortfolio(args
, opts?
): Promise
<TransactionQueue
<NumberedPortfolio
, NumberedPortfolio
, unknown
[][]>>
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
Parameters
Returns
Promise
<TransactionQueue
<NumberedPortfolio
, NumberedPortfolio
, unknown
[][]>>
Defined in
getIdentity
▸ getIdentity(args
): Promise
<Identity
>
Create an Identity instance from a DID
throws
if there is no Identity with the passed DID
Parameters
args
Object
args.did
string
Returns
Promise
<Identity
>
Defined in
isIdentityValid
▸ isIdentityValid(args
): Promise
<boolean
>
Return whether the supplied Identity/DID exists
Parameters
args
Object
args.identity
string
| Identity
Returns
Promise
<boolean
>
Defined in
registerIdentity
▸ registerIdentity(args
, opts?
): Promise
<TransactionQueue
<Identity
, Identity
, unknown
[][]>>
Register an Identity
note
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
Parameters
opts?
Returns
Promise
<TransactionQueue
<Identity
, Identity
, unknown
[][]>>
Defined in
Last updated