Claims

Handles all Claims related functionality

Hierarchy

  • Claims

Index

Methods

Methods

addClaims

addClaims(args: Pick‹ModifyClaimsParams, "claims"›, opts?: ProcedureOptsarrow-up-right): Promise‹TransactionQueue‹void››

Defined in src/Claims.ts:130arrow-up-right

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 ProcedureMethodarrow-up-right, which means you can call addClaims.checkAuthorizationarrow-up-right on it to see whether the signing Account and Identity have the required roles and permissions to run it

Parameters:

Name
Type

Returns: Promise‹TransactionQueue‹void››


addInvestorUniquenessClaim

addInvestorUniquenessClaim(args: AddInvestorUniquenessClaimParamsarrow-up-right, opts?: ProcedureOptsarrow-up-right): Promise‹TransactionQueue‹void››

Defined in src/Claims.ts:117arrow-up-right

Add an Investor Uniqueness Claim to the signing Identity

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

Parameters:

Returns: Promise‹TransactionQueue‹void››


editClaims

editClaims(args: Pick‹ModifyClaimsParams, "claims"›, opts?: ProcedureOptsarrow-up-right): Promise‹TransactionQueue‹void››

Defined in src/Claims.ts:143arrow-up-right

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 ProcedureMethodarrow-up-right, which means you can call editClaims.checkAuthorizationarrow-up-right on it to see whether the signing Account and Identity have the required roles and permissions to run it

Parameters:

Name
Type

Returns: Promise‹TransactionQueue‹void››


getCddClaims

getCddClaims(opts: object): Promise‹ClaimDataarrow-up-rightCddClaimarrow-up-right›[]›

Defined in src/Claims.ts:437arrow-up-right

Retrieve the list of CDD claims for a target Identity

Parameters:

Default value opts: object= {}

Name
Type
Description

includeExpired?

undefined | false | true

whether to include expired claims. Defaults to true

target?

string | Identity

Identity for which to fetch CDD claims (optional, defaults to the signing Identity)

Returns: Promise‹ClaimDataarrow-up-rightCddClaimarrow-up-right›[]›


getClaimScopes

getClaimScopes(opts: object): Promise‹ClaimScopearrow-up-right[]›

Defined in src/Claims.ts:387arrow-up-right

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:

Default value opts: object= {}

Name
Type
Description

target?

string | Identity

Identity for which to fetch claim scopes (optional, defaults to the signing Identity)

Returns: Promise‹ClaimScopearrow-up-right[]›


getIdentitiesWithClaims

getIdentitiesWithClaims(opts: object): Promise‹ResultSetarrow-up-rightIdentityWithClaimsarrow-up-right››

Defined in src/Claims.ts:234arrow-up-right

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

note supports pagination

note uses the middleware

Parameters:

Default value opts: object= {}

Name
Type
Description

claimTypes?

types of the claims to fetch. Defaults to any type

includeExpired?

undefined | false | true

whether to include expired claims. Defaults to true

scope?

scope of the claims to fetch. Defaults to any scope

size?

BigNumber

page size

start?

BigNumber

page offset

targets?

(string | Identity‹›)[]

Identities (or Identity IDs) for which to fetch targeting claims. Defaults to all targets

trustedClaimIssuers?

(string | Identity‹›)[]

Identity IDs of claim issuers. Defaults to all claim issuers

Returns: Promise‹ResultSetarrow-up-rightIdentityWithClaimsarrow-up-right››


getIdentitiesWithClaimsV2

getIdentitiesWithClaimsV2(opts: object): Promise‹ResultSetarrow-up-rightIdentityWithClaimsarrow-up-right››

Defined in src/Claims.ts:302arrow-up-right

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

note supports pagination

note uses the middleware V2

Parameters:

Default value opts: object= {}

Name
Type
Description

claimTypes?

types of the claims to fetch. Defaults to any type

includeExpired?

undefined | false | true

whether to include expired claims. Defaults to true

scope?

scope of the claims to fetch. Defaults to any scope

size?

BigNumber

page size

start?

BigNumber

page offset

targets?

(string | Identity‹›)[]

Identities (or Identity IDs) for which to fetch targeting claims. Defaults to all targets

trustedClaimIssuers?

(string | Identity‹›)[]

Identity IDs of claim issuers. Defaults to all claim issuers

Returns: Promise‹ResultSetarrow-up-rightIdentityWithClaimsarrow-up-right››


getInvestorUniquenessClaims

getInvestorUniquenessClaims(opts: object): Promise‹ClaimDataarrow-up-rightInvestorUniquenessClaimarrow-up-right›[]›

Defined in src/Claims.ts:461arrow-up-right

Retrieve the list of InvestorUniqueness claims for a target Identity

Parameters:

Default value opts: object= {}

Name
Type
Description

includeExpired?

undefined | false | true

whether to include expired claims. Defaults to true

target?

string | Identity

Identity for which to fetch CDD claims (optional, defaults to the signing Identity)

Returns: Promise‹ClaimDataarrow-up-rightInvestorUniquenessClaimarrow-up-right›[]›


getIssuedClaims

getIssuedClaims(opts: object): Promise‹ResultSetarrow-up-rightClaimDataarrow-up-right››

Defined in src/Claims.ts:169arrow-up-right

Retrieve all claims issued by an Identity

note supports pagination

note uses the middleware

Parameters:

Default value opts: object= {}

Name
Type
Description

includeExpired?

undefined | false | true

whether to include expired claims. Defaults to true

size?

BigNumber

-

start?

BigNumber

-

target?

string | Identity

Identity (optional, defaults to the signing Identity)

Returns: Promise‹ResultSetarrow-up-rightClaimDataarrow-up-right››


getIssuedClaimsV2

getIssuedClaimsV2(opts: object): Promise‹ResultSetarrow-up-rightClaimDataarrow-up-right››

Defined in src/Claims.ts:199arrow-up-right

Retrieve all claims issued by an Identity

note supports pagination

note uses the middlewareV2

Parameters:

Default value opts: object= {}

Name
Type
Description

includeExpired?

undefined | false | true

whether to include expired claims. Defaults to true

size?

BigNumber

-

start?

BigNumber

-

target?

string | Identity

Identity (optional, defaults to the signing Identity)

Returns: Promise‹ResultSetarrow-up-rightClaimDataarrow-up-right››


getTargetingClaims

getTargetingClaims(opts: object): Promise‹ResultSetarrow-up-rightIdentityWithClaimsarrow-up-right››

Defined in src/Claims.ts:488arrow-up-right

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

note supports pagination

note uses the middleware (optional)

Parameters:

Default value opts: object= {}

Name
Type
Description

includeExpired?

undefined | false | true

whether to include expired claims. Defaults to true

size?

BigNumber

-

start?

BigNumber

-

target?

string | Identity

Identity for which to fetch targeting claims (optional, defaults to the signing Identity)

trustedClaimIssuers?

(string | Identity‹›)[]

-

Returns: Promise‹ResultSetarrow-up-rightIdentityWithClaimsarrow-up-right››


getTargetingClaimsV2

getTargetingClaimsV2(opts: object): Promise‹ResultSetarrow-up-rightIdentityWithClaimsarrow-up-right››

Defined in src/Claims.ts:581arrow-up-right

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

note supports pagination

note uses the middlewareV2 (optional)

Parameters:

Default value opts: object= {}

Name
Type
Description

includeExpired?

undefined | false | true

whether to include expired claims. Defaults to true

size?

BigNumber

-

start?

BigNumber

-

target?

string | Identity

Identity for which to fetch targeting claims (optional, defaults to the signing Identity)

trustedClaimIssuers?

(string | Identity‹›)[]

-

Returns: Promise‹ResultSetarrow-up-rightIdentityWithClaimsarrow-up-right››


revokeClaims

revokeClaims(args: Pick‹ModifyClaimsParams, "claims"›, opts?: ProcedureOptsarrow-up-right): Promise‹TransactionQueue‹void››

Defined in src/Claims.ts:156arrow-up-right

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 ProcedureMethodarrow-up-right, which means you can call revokeClaims.checkAuthorizationarrow-up-right on it to see whether the signing Account and Identity have the required roles and permissions to run it

Parameters:

Name
Type

Returns: Promise‹TransactionQueue‹void››

Last updated

Was this helpful?