api.entities.DefaultTrustedClaimIssuer - PolymeshAssociation/polymesh-sdk GitHub Wiki

@polymeshassociation/polymesh-sdk / api/entities/DefaultTrustedClaimIssuer

api/entities/DefaultTrustedClaimIssuer

Classes

DefaultTrustedClaimIssuer

Defined in: api/entities/DefaultTrustedClaimIssuer.ts:21

Represents a default trusted claim issuer for a specific Asset in the Polymesh blockchain

Extends

Properties

asset

asset: FungibleAsset

Defined in: api/entities/DefaultTrustedClaimIssuer.ts:35

Asset for which this Identity is a Default Trusted Claim Issuer

assetPermissions

assetPermissions: AssetPermissions

Defined in: api/entities/Identity/index.ts:122

Inherited from

Identity.assetPermissions

authorizations

authorizations: IdentityAuthorizations

Defined in: api/entities/Identity/index.ts:120

Inherited from

Identity.authorizations

did

did: string

Defined in: api/entities/Identity/index.ts:117

Identity ID as stored in the blockchain

Inherited from

Identity.did

portfolios

portfolios: Portfolios

Defined in: api/entities/Identity/index.ts:121

Inherited from

Identity.portfolios

uuid

uuid: string

Defined in: api/entities/Entity.ts:46

Inherited from

Identity.uuid

Methods

addedAt()

addedAt(): Promise<EventIdentifier | null>

Defined in: api/entities/DefaultTrustedClaimIssuer.ts:54

Retrieve the identifier data (block number, date and event index) of the event that was emitted when the trusted claim issuer was added

Returns

Promise<EventIdentifier | null>

Note

uses the middlewareV2

Note

there is a possibility that the data is not ready by the time it is requested. In that case, null is returned

areSecondaryAccountsFrozen()
Call Signature

areSecondaryAccountsFrozen(): Promise<boolean>

Defined in: api/entities/Identity/index.ts:757

Check whether secondary Accounts are frozen

Returns

Promise<boolean>

Promise that resolves to true if secondary accounts are frozen, false otherwise

Inherited from

Identity.areSecondaryAccountsFrozen

Call Signature

areSecondaryAccountsFrozen(callback): Promise<UnsubCallback>

Defined in: api/entities/Identity/index.ts:768

Check whether secondary Accounts are frozen (with subscription support)

Parameters
Parameter Type Description
callback SubCallback<boolean> Callback function that receives frozen status updates
Returns

Promise<UnsubCallback>

Promise that resolves to an unsubscribe function

Note

can be subscribed to, if connected to node using a web socket

Inherited from

Identity.areSecondaryAccountsFrozen

checkRoles()

checkRoles(roles): Promise<CheckRolesResult>

Defined in: api/entities/Identity/index.ts:497

Check whether this Identity possesses all specified roles

Parameters
Parameter Type
roles Role[]
Returns

Promise<CheckRolesResult>

Inherited from

Identity.checkRoles

exists()

exists(): Promise<boolean>

Defined in: api/entities/Identity/index.ts:968

Determine whether this Identity exists on chain

Returns

Promise<boolean>

Note

asset Identities aren't considered to exist for this check

Inherited from

Identity.exists

getAssetBalance()
Call Signature

getAssetBalance(args): Promise<BigNumber>

Defined in: api/entities/Identity/index.ts:199

Retrieve the balance of a particular Asset by ticker

Parameters
Parameter Type Description
args { ticker: string; } -
args.ticker string Asset ticker
Returns

Promise<BigNumber>

Promise that resolves to the Asset balance

Inherited from

Identity.getAssetBalance

Call Signature

getAssetBalance(args): Promise<BigNumber>

Defined in: api/entities/Identity/index.ts:208

Retrieve the balance of a particular Asset by Asset ID

Parameters
Parameter Type Description
args { assetId: string; } -
args.assetId string Asset identifier
Returns

Promise<BigNumber>

Promise that resolves to the Asset balance

Inherited from

Identity.getAssetBalance

Call Signature

getAssetBalance(args, callback): Promise<UnsubCallback>

Defined in: api/entities/Identity/index.ts:220

Retrieve the balance of a particular Asset by ticker (with subscription support)

Parameters
Parameter Type Description
args { ticker: string; } -
args.ticker string Asset ticker
callback SubCallback<BigNumber> Callback function that receives balance updates
Returns

Promise<UnsubCallback>

Promise that resolves to an unsubscribe function

Note

can be subscribed to, if connected to node using a web socket

Inherited from

Identity.getAssetBalance

Call Signature

getAssetBalance(args, callback): Promise<UnsubCallback>

Defined in: api/entities/Identity/index.ts:235

Retrieve the balance of a particular Asset by Asset ID (with subscription support)

Parameters
Parameter Type Description
args { assetId: string; } -
args.assetId string Asset identifier
callback SubCallback<BigNumber> Callback function that receives balance updates
Returns

Promise<UnsubCallback>

Promise that resolves to an unsubscribe function

Note

can be subscribed to, if connected to node using a web socket

Inherited from

Identity.getAssetBalance

getHeldAssets()

getHeldAssets(opts?): Promise<ResultSet<FungibleAsset>>

Defined in: api/entities/Identity/index.ts:394

Retrieve a list of all Assets which were held at one point by this Identity

Parameters
Parameter Type
opts { order?: AssetHoldersOrderBy; size?: BigNumber; start?: BigNumber; }
opts.order? AssetHoldersOrderBy
opts.size? BigNumber
opts.start? BigNumber
Returns

Promise<ResultSet<FungibleAsset>>

Note

uses the middlewareV2

Note

supports pagination

Inherited from

Identity.getHeldAssets

getHeldNfts()

getHeldNfts(opts?): Promise<ResultSet<HeldNfts>>

Defined in: api/entities/Identity/index.ts:440

Retrieve a list of all NftCollections which were held at one point by this Identity

Parameters
Parameter Type
opts { order?: NftHoldersOrderBy; size?: BigNumber; start?: BigNumber; }
opts.order? NftHoldersOrderBy
opts.size? BigNumber
opts.start? BigNumber
Returns

Promise<ResultSet<HeldNfts>>

Note

uses the middlewareV2

Note

supports pagination

Inherited from

Identity.getHeldNfts

getHistoricalInstructions()

getHistoricalInstructions(filter?): Promise<ResultSet<HistoricInstruction>>

Defined in: api/entities/Identity/index.ts:1002

Retrieve all Instructions that have been associated with this Identity's DID

Parameters
Parameter Type
filter? Omit<HistoricalInstructionFilters, "identity">
Returns

Promise<ResultSet<HistoricInstruction>>

Note

uses the middleware V2

Note

supports pagination

Inherited from

Identity.getHistoricalInstructions

getInstructions()

getInstructions(): Promise<GroupedInstructions>

Defined in: api/entities/Identity/index.ts:570

Retrieve all Instructions where this Identity is either the custodian of one or more portfolios in the legs or owns one or more accounts in the legs, grouped by status

Returns

Promise<GroupedInstructions>

Inherited from

Identity.getInstructions

getInvolvedInstructions()

getInvolvedInstructions(): Promise<GroupedInvolvedInstructions>

Defined in: api/entities/Identity/index.ts:683

Retrieve all Instructions where this Identity is a participant (owner/custodian), grouped by the role of the Identity and Instruction status

Returns

Promise<GroupedInvolvedInstructions>

Inherited from

Identity.getInvolvedInstructions

getMultiSigSigners()

getMultiSigSigners(): Promise<MultiSigSigners[]>

Defined in: api/entities/Identity/index.ts:1125

Returns the list of MultiSig accounts along with their signatories this identity has responsibility for. The roles possible are:

  • Admin: The identity is able to unilaterally modify the MultiSig properties, such as the signers and signatures required for a proposal
  • Payer: The identity's primary key will be deducted any POLYX fees the MultiSig may incur
Returns

Promise<MultiSigSigners[]>

Note

this query can be potentially SLOW depending on the number of MultiSigs present on the chain

Inherited from

Identity.getMultiSigSigners

getOffChainAuthorizationNonce()

getOffChainAuthorizationNonce(): Promise<BigNumber>

Defined in: api/entities/Identity/index.ts:1203

Returns the off chain authorization nonce for this Identity

Returns

Promise<BigNumber>

Inherited from

Identity.getOffChainAuthorizationNonce

getPendingDistributions()

getPendingDistributions(): Promise<DistributionWithDetails[]>

Defined in: api/entities/Identity/index.ts:806

Retrieve every Dividend Distribution for which this Identity is eligible and hasn't been paid

Returns

Promise<DistributionWithDetails[]>

Note

uses the middleware

Note

this query can be potentially SLOW depending on which Assets this Identity has held

Inherited from

Identity.getPendingDistributions

getPrimaryAccount()
Call Signature

getPrimaryAccount(): Promise<PermissionedAccount>

Defined in: api/entities/Identity/index.ts:320

Retrieve the primary Account associated with the Identity

Returns

Promise<PermissionedAccount>

Promise that resolves to the primary Account information

Inherited from

Identity.getPrimaryAccount

Call Signature

getPrimaryAccount(callback): Promise<UnsubCallback>

Defined in: api/entities/Identity/index.ts:331

Retrieve the primary Account associated with the Identity (with subscription support)

Parameters
Parameter Type Description
callback SubCallback<PermissionedAccount> Callback function that receives primary Account updates
Returns

Promise<UnsubCallback>

Promise that resolves to an unsubscribe function

Note

can be subscribed to, if connected to node using a web socket

Inherited from

Identity.getPrimaryAccount

getSecondaryAccounts()
Call Signature

getSecondaryAccounts(paginationOpts?): Promise<ResultSet<PermissionedAccount>>

Defined in: api/entities/Identity/index.ts:865

Get the list of secondary Accounts related to the Identity

Parameters
Parameter Type Description
paginationOpts? PaginationOptions Options for pagination
Returns

Promise<ResultSet<PermissionedAccount>>

Promise that resolves to a paginated result of secondary accounts

Note

supports pagination

Inherited from

Identity.getSecondaryAccounts

Call Signature

getSecondaryAccounts(callback): Promise<UnsubCallback>

Defined in: api/entities/Identity/index.ts:878

Get the list of secondary Accounts related to the Identity (with subscription support)

Parameters
Parameter Type Description
callback SubCallback<PermissionedAccount[]> Callback function that receives secondary account updates
Returns

Promise<UnsubCallback>

Promise that resolves to an unsubscribe function

Note

can be subscribed to, if connected to node using a web socket

Inherited from

Identity.getSecondaryAccounts

Call Signature

getSecondaryAccounts(paginationOpts, callback): Promise<UnsubCallback>

Defined in: api/entities/Identity/index.ts:893

Get the list of secondary Accounts related to the Identity (with pagination and subscription support)

Parameters
Parameter Type Description
paginationOpts PaginationOptions Options for pagination
callback SubCallback<PermissionedAccount[]> Callback function that receives secondary account updates
Returns

Promise<UnsubCallback>

Promise that resolves to an unsubscribe function

Note

supports pagination

Note

can be subscribed to, if connected to node using a web socket

Inherited from

Identity.getSecondaryAccounts

getTrustingAssets()

getTrustingAssets(): Promise<FungibleAsset[]>

Defined in: api/entities/Identity/index.ts:523

Get the list of Assets for which this Identity is a trusted claim issuer

Returns

Promise<FungibleAsset[]>

Note

uses the middlewareV2

Inherited from

Identity.getTrustingAssets

getVenues()

getVenues(): Promise<Venue[]>

Defined in: api/entities/Identity/index.ts:542

Retrieve all Venues created by this Identity

Returns

Promise<Venue[]>

Inherited from

Identity.getVenues

hasRole()

hasRole(role): Promise<boolean>

Defined in: api/entities/Identity/index.ts:150

Check whether this Identity possesses the specified Role

Parameters
Parameter Type
role Role
Returns

Promise<boolean>

Inherited from

Identity.hasRole

isAssetPreApproved()

isAssetPreApproved(asset): Promise<boolean>

Defined in: api/entities/Identity/index.ts:1064

Returns whether or not this Identity has pre-approved a particular asset

Parameters
Parameter Type
asset string | BaseAsset
Returns

Promise<boolean>

Inherited from

Identity.isAssetPreApproved

isDidRegistrar()

isDidRegistrar(): Promise<boolean>

Defined in: api/entities/Identity/index.ts:303

Check whether this Identity is a DID Registrar

Returns

Promise<boolean>

Inherited from

Identity.isDidRegistrar

isEqual()

isEqual(entity): boolean

Defined in: api/entities/Entity.ts:61

Determine whether this Entity is the same as another one

Parameters
Parameter Type
entity Entity<unknown, unknown>
Returns

boolean

Inherited from

Identity.isEqual

isGcMember()

isGcMember(): Promise<boolean>

Defined in: api/entities/Identity/index.ts:286

Check whether this Identity is Governance Committee member

Returns

Promise<boolean>

Inherited from

Identity.isGcMember

isMandatoryReceiverAffirmationEnabled()

isMandatoryReceiverAffirmationEnabled(): Promise<boolean>

Defined in: api/entities/Identity/index.ts:1089

Returns whether or not this Identity has opted in to mandatory receiver affirmation. When true, the identity must explicitly affirm incoming asset transfer in settlements unless an asset level or portfolio level exemption applies.

Returns

Promise<boolean>

Inherited from

Identity.isMandatoryReceiverAffirmationEnabled

preApprovedAssets()

preApprovedAssets(paginationOpts?): Promise<ResultSet<Asset>>

Defined in: api/entities/Identity/index.ts:1030

Returns a list of all assets this Identity has pre-approved. These assets will not require affirmation when being received in settlements

Parameters
Parameter Type
paginationOpts? PaginationOptions
Returns

Promise<ResultSet<Asset>>

Inherited from

Identity.preApprovedAssets

setMandatoryReceiverAffirmation()

setMandatoryReceiverAffirmation(args, opts?): Promise<GenericPolymeshTransaction<void, void>>

Defined in: api/entities/Identity/index.ts:1112

Enable or disable mandatory receiver affirmation for incoming settlement transfers. When enabled (ReceiverAffirmationRequirement.Required), the signing identity must explicitly affirm any incoming asset transfer unless an asset level or portfolio level exemption applies. When disabled (ReceiverAffirmationRequirement.Automatic), all incoming transfers are auto-affirmed.

Parameters
Parameter Type
args { requirement: ReceiverAffirmationRequirement; }
args.requirement ReceiverAffirmationRequirement
opts? ProcedureOpts
Returns

Promise<GenericPolymeshTransaction<void, void>>

Note

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

Inherited from

Identity.setMandatoryReceiverAffirmation

toHuman()

toHuman(): string

Defined in: api/entities/Identity/index.ts:991

Return the Identity's DID

Returns

string

Inherited from

Identity.toHuman

trustedFor()

trustedFor(): Promise<TrustedFor[] | null>

Defined in: api/entities/DefaultTrustedClaimIssuer.ts:81

Retrieve claim types for which this Claim Issuer is trusted. A null value means that the issuer is trusted for all claim types

Returns

Promise<TrustedFor[] | null>

generateUuid()

static generateUuid<Identifiers>(identifiers): string

Defined in: api/entities/Entity.ts:14

Generate the Entity's UUID from its identifying properties

Type Parameters
Type Parameter
Identifiers
Parameters
Parameter Type Description
identifiers Identifiers -
Returns

string

Inherited from

Identity.generateUuid

unserialize()

static unserialize<Identifiers>(serialized): Identifiers

Defined in: api/entities/Entity.ts:23

Unserialize a UUID into its Unique Identifiers

Type Parameters
Type Parameter
Identifiers
Parameters
Parameter Type Description
serialized string UUID to unserialize
Returns

Identifiers

Inherited from

Identity.unserialize

Interfaces

UniqueIdentifiers

Defined in: api/entities/DefaultTrustedClaimIssuer.ts:13

Properties

assetId

assetId: string

Defined in: api/entities/DefaultTrustedClaimIssuer.ts:15

did

did: string

Defined in: api/entities/DefaultTrustedClaimIssuer.ts:14

⚠️ **GitHub.com Fallback** ⚠️