api_client_Claims.Claims

@polymeshassociation/polymesh-sdk / Modules / api/client/Claims / Claims

Class: Claims

api/client/Claims.Claims

Handles all Claims related functionality

Table of contents

Methods

Methods

addClaims

addClaims(args, opts?): Promise<TransactionQueue<void, void, unknown[][]>>

Add claims to Identities

note required roles:

  • Customer Due Diligence Provider: if there is at least one CDD claim in the arguments

note this method is of type ProcedureMethod, which means you can call addClaims.checkAuthorization on it to see whether the signing Account and Identity have the required roles and permissions to run it

Parameters

Returns

Promise<TransactionQueue<void, void, unknown[][]>>

Defined in

api/client/Claims.ts:126


addInvestorUniquenessClaim

addInvestorUniquenessClaim(args, opts?): Promise<TransactionQueue<void, void, unknown[][]>>

Add an Investor Uniqueness Claim to the signing Identity

note this method is of type ProcedureMethod, which means you can call addInvestorUniquenessClaim.checkAuthorization on it to see whether the signing Account and Identity have the required roles and permissions to run it

Parameters

Returns

Promise<TransactionQueue<void, void, unknown[][]>>

Defined in

api/client/Claims.ts:113


editClaims

editClaims(args, opts?): Promise<TransactionQueue<void, void, unknown[][]>>

Edit claims associated to Identities (only the expiry date can be modified)

note required roles:

  • Customer Due Diligence Provider: if there is at least one CDD claim in the arguments

note this method is of type ProcedureMethod, which means you can call editClaims.checkAuthorization on it to see whether the signing Account and Identity have the required roles and permissions to run it

Parameters

Returns

Promise<TransactionQueue<void, void, unknown[][]>>

Defined in

api/client/Claims.ts:139


getCddClaims

getCddClaims(opts?): Promise<ClaimData<CddClaim>[]>

Retrieve the list of CDD claims for a target Identity

Parameters

Returns

Promise<ClaimData<CddClaim>[]>

Defined in

api/client/Claims.ts:310


getClaimScopes

getClaimScopes(opts?): Promise<ClaimScope[]>

Retrieve all scopes in which claims have been made for the target Identity. If the scope is an asset DID, the corresponding ticker is returned as well

Parameters

Returns

Promise<ClaimScope[]>

Defined in

api/client/Claims.ts:260


getIdentitiesWithClaims

getIdentitiesWithClaims(opts?): Promise<ResultSet<IdentityWithClaims>>

Retrieve a list of Identities with claims associated to them. Can be filtered using parameters

note supports pagination

note uses the middleware

Parameters

Returns

Promise<ResultSet<IdentityWithClaims>>

Defined in

api/client/Claims.ts:200


getInvestorUniquenessClaims

getInvestorUniquenessClaims(opts?): Promise<ClaimData<InvestorUniquenessClaim>[]>

Retrieve the list of InvestorUniqueness claims for a target Identity

Parameters

Returns

Promise<ClaimData<InvestorUniquenessClaim>[]>

Defined in

api/client/Claims.ts:334


getIssuedClaims

getIssuedClaims(opts?): Promise<ResultSet<ClaimData<Claim>>>

Retrieve all claims issued by an Identity

note supports pagination

note uses the middleware

Parameters

Returns

Promise<ResultSet<ClaimData<Claim>>>

Defined in

api/client/Claims.ts:165


getTargetingClaims

getTargetingClaims(opts?): Promise<ResultSet<IdentityWithClaims>>

Retrieve all claims issued about an Identity, grouped by claim issuer

note supports pagination

note uses the middleware (optional)

Parameters

Returns

Promise<ResultSet<IdentityWithClaims>>

Defined in

api/client/Claims.ts:361


revokeClaims

revokeClaims(args, opts?): Promise<TransactionQueue<void, void, unknown[][]>>

Revoke claims from Identities

note required roles:

  • Customer Due Diligence Provider: if there is at least one CDD claim in the arguments

note this method is of type ProcedureMethod, which means you can call revokeClaims.checkAuthorization on it to see whether the signing Account and Identity have the required roles and permissions to run it

Parameters

Returns

Promise<TransactionQueue<void, void, unknown[][]>>

Defined in

api/client/Claims.ts:152

Last updated