Skip to content

api.entities.Asset.Compliance.TrustedClaimIssuers.TrustedClaimIssuers

VictorVicente edited this page Sep 16, 2022 · 8 revisions

Class: TrustedClaimIssuers

api/entities/Asset/Compliance/TrustedClaimIssuers.TrustedClaimIssuers

Handles all Asset Default Trusted Claim Issuers related functionality

Hierarchy

  • Namespace<Asset>

    TrustedClaimIssuers

Table of contents

Methods

Methods

add

add(args, opts?): Promise<GenericPolymeshTransaction<Asset, Asset>>

Add the supplied Identities to the Asset's list of trusted claim issuers

Note

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

Parameters

Name Type
args ModifyAssetTrustedClaimIssuersAddSetParams
opts? ProcedureOpts

Returns

Promise<GenericPolymeshTransaction<Asset, Asset>>


get

get(): Promise<TrustedClaimIssuer<true>[]>

Retrieve the current Default Trusted Claim Issuers of the Asset

Note

can be subscribed to

Returns

Promise<TrustedClaimIssuer<true>[]>

get(callback): Promise<UnsubCallback>

Parameters

Name Type
callback SubCallback<TrustedClaimIssuer<true>[]>

Returns

Promise<UnsubCallback>


remove

remove(args, opts?): Promise<GenericPolymeshTransaction<Asset, Asset>>

Remove the supplied Identities from the Asset's list of trusted claim issuers *

Note

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

Parameters

Name Type
args ModifyAssetTrustedClaimIssuersRemoveParams
opts? ProcedureOpts

Returns

Promise<GenericPolymeshTransaction<Asset, Asset>>


set

set(args, opts?): Promise<GenericPolymeshTransaction<Asset, Asset>>

Assign a new default list of trusted claim issuers to the Asset by replacing the existing ones with the list passed as a parameter

This requires two transactions

Note

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

Parameters

Name Type
args ModifyAssetTrustedClaimIssuersAddSetParams
opts? ProcedureOpts

Returns

Promise<GenericPolymeshTransaction<Asset, Asset>>

Clone this wiki locally