api_client_Claims.Claims
Last updated
Was this helpful?
Last updated
Was this helpful?
/ / / Claims
.Claims
Handles all Claims related functionality
â–¸ 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
Parameters
args
opts?
Returns
Promise
<TransactionQueue
<void
, void
, unknown
[][]>>
Defined in
â–¸ addInvestorUniquenessClaim(args
, opts?
): Promise
<TransactionQueue
<void
, void
, unknown
[][]>>
Add an Investor Uniqueness Claim to the signing Identity
Parameters
args
opts?
Returns
Promise
<TransactionQueue
<void
, void
, unknown
[][]>>
Defined in
â–¸ 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
Parameters
args
opts?
Returns
Promise
<TransactionQueue
<void
, void
, unknown
[][]>>
Defined in
Retrieve the list of CDD claims for a target Identity
Parameters
opts
Object
-
opts.includeExpired?
boolean
whether to include expired claims. Defaults to true
opts.target?
Identity for which to fetch CDD claims (optional, defaults to the signing Identity)
Returns
Defined in
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
opts
Object
-
opts.target?
Identity for which to fetch claim scopes (optional, defaults to the signing Identity)
Returns
Defined in
Retrieve a list of Identities with claims associated to them. Can be filtered using parameters
note
supports pagination
note
uses the middleware
Parameters
opts
Object
-
opts.claimTypes?
types of the claims to fetch. Defaults to any type
opts.includeExpired?
boolean
whether to include expired claims. Defaults to true
opts.scope?
scope of the claims to fetch. Defaults to any scope
opts.size?
BigNumber
page size
opts.start?
BigNumber
page offset
opts.targets?
Identities (or Identity IDs) for which to fetch claims (targets). Defaults to all targets
opts.trustedClaimIssuers?
Identity IDs of claim issuers. Defaults to all claim issuers
Returns
Defined in
Retrieve the list of InvestorUniqueness claims for a target Identity
Parameters
opts
Object
-
opts.includeExpired?
boolean
whether to include expired claims. Defaults to true
opts.target?
Identity for which to fetch CDD claims (optional, defaults to the signing Identity)
Returns
Defined in
Retrieve all claims issued by an Identity
note
supports pagination
note
uses the middleware
Parameters
opts
Object
-
opts.includeExpired?
boolean
whether to include expired claims. Defaults to true
opts.size?
BigNumber
-
opts.start?
BigNumber
-
opts.target?
Identity (optional, defaults to the signing Identity)
Returns
Defined in
Retrieve all claims issued about an Identity, grouped by claim issuer
note
supports pagination
note
uses the middleware (optional)
Parameters
opts
Object
-
opts.includeExpired?
boolean
whether to include expired claims. Defaults to true
opts.scope?
-
opts.size?
BigNumber
-
opts.start?
BigNumber
-
opts.target?
Identity for which to fetch targeting claims (optional, defaults to the signing Identity)
opts.trustedClaimIssuers?
-
Returns
Defined in
â–¸ 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
Parameters
args
opts?
Returns
Promise
<TransactionQueue
<void
, void
, unknown
[][]>>
Defined in
note
this method is of type , which means you can call on it to see whether the signing Account and Identity have the required roles and permissions to run it
Pick
<, "claims"
>
note
this method is of type , which means you can call on it to see whether the signing Account and Identity have the required roles and permissions to run it
note
this method is of type , which means you can call on it to see whether the signing Account and Identity have the required roles and permissions to run it
Pick
<, "claims"
>
â–¸ getCddClaims(opts?
): Promise
<<>[]>
string
|
Promise
<<>[]>
â–¸ getClaimScopes(opts?
): Promise
<[]>
string
|
Promise
<[]>
â–¸ getIdentitiesWithClaims(opts?
): Promise
<<>>
( | | | | | | | | | | | )[]
(string
| )[]
(string
| )[]
Promise
<<>>
â–¸ getInvestorUniquenessClaims(opts?
): Promise
<<>[]>
string
|
Promise
<<>[]>
â–¸ getIssuedClaims(opts?
): Promise
<<<>>>
string
|
Promise
<<<>>>
â–¸ getTargetingClaims(opts?
): Promise
<<>>
string
|
(string
| )[]
Promise
<<>>
note
this method is of type , which means you can call on it to see whether the signing Account and Identity have the required roles and permissions to run it
Pick
<, "claims"
>