Claims
Handles all Claims related functionality
- Claims
▸ addClaims(
args
: Pick‹ModifyClaimsParams, "claims"›, opts?
: ProcedureOpts): Promise‹TransactionQueue‹void››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 itParameters:
Name | Type |
---|---|
args | |
opts? |
▸ addInvestorUniquenessClaim(
args
: AddInvestorUniquenessClaimParams, opts?
: ProcedureOpts): Promise‹TransactionQueue‹void››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 itParameters:
Name | Type |
---|---|
args | |
opts? |
▸ editClaims(
args
: Pick‹ModifyClaimsParams, "claims"›, opts?
: ProcedureOpts): Promise‹TransactionQueue‹void››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 itParameters:
Name | Type |
---|---|
args | |
opts? |
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? | Identity for which to fetch CDD claims (optional, defaults to the signing Identity) |
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? | Identity for which to fetch claim scopes (optional, defaults to the signing Identity) |
Retrieve a list of Identities with claims associated to them. Can be filtered using parameters
note
supports paginationnote
uses the middlewareParameters:
▪
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? | Identities (or Identity IDs) for which to fetch claims (targets). Defaults to all targets | |
trustedClaimIssuers? | Identity IDs of claim issuers. Defaults to all claim issuers |
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? | Identity for which to fetch CDD claims (optional, defaults to the signing Identity) |
Retrieve all claims issued by an Identity
note
supports paginationnote
uses the middlewareParameters:
▪
Default value
opts: object= {}Name | Type | Description |
---|---|---|
includeExpired? | undefined | false | true | whether to include expired claims. Defaults to true |
size? | BigNumber | - |
start? | BigNumber | - |
target? | Identity (optional, defaults to the signing Identity) |
Retrieve all claims issued about an Identity, grouped by claim issuer
note
supports paginationnote
uses the middleware (optional)Parameters:
▪
Default value
opts: object= {}Name | Type | Description |
---|---|---|
includeExpired? | undefined | false | true | whether to include expired claims. Defaults to true |
scope? | - | |
size? | BigNumber | - |
start? | BigNumber | - |
target? | Identity for which to fetch targeting claims (optional, defaults to the signing Identity) | |
trustedClaimIssuers? | - |
▸ revokeClaims(
args
: Pick‹ModifyClaimsParams, "claims"›, opts?
: ProcedureOpts): Promise‹TransactionQueue‹void››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 itParameters:
Name | Type |
---|---|
args | |
opts? |
Last modified 1yr ago