Polymesh SDK API Reference
beta
beta
  • Globals
  • Classes
    • Account
    • AccountManagement
    • Asset
    • AssetHolders
    • AssetPermissions
    • Assets
    • AuthorizationRequest
    • Authorizations
    • Checkpoint
    • CheckpointSchedule
    • Checkpoints
    • Claims
    • Compliance
    • CorporateAction
    • CorporateActionBase
    • CorporateActions
    • Count
    • CustomPermissionGroup
    • DefaultPortfolio
    • DefaultTrustedClaimIssuer
    • Distributions
    • DividendDistribution
    • Documents
    • Entity
    • Identities
    • Identity
    • IdentityAuthorizations
    • Instruction
    • Issuance
    • KnownPermissionGroup
    • Network
    • NumberedPortfolio
    • Offering
    • Offerings
    • Percentage
    • PermissionGroup
    • Permissions
    • Polymesh
    • PolymeshError
    • PolymeshTransaction
    • PolymeshTransactionBase
    • PolymeshTransactionBatch
    • Portfolio
    • Portfolios
    • Requirements
    • Schedules
    • Settlements
    • Subsidy
    • TickerReservation
    • TransactionQueue
    • TransferRestrictionBase
    • TransferRestrictions
    • TrustedClaimIssuers
    • Venue
  • Enums
  • Interfaces
Powered by GitBook
On this page
  • Hierarchy
  • Index
  • Constructors
  • Properties
  • Methods
  • Constructors
  • constructor
  • Properties
  • assetPermissions
  • authorizations
  • Protected context
  • did
  • portfolios
  • uuid
  • Methods
  • areSecondaryAccountsFrozen
  • checkRoles
  • exists
  • getAssetBalance
  • getHeldAssets
  • getHeldAssetsV2
  • getInstructions
  • getPendingDistributions
  • getPendingInstructions
  • getPrimaryAccount
  • getScopeId
  • getSecondaryAccounts
  • getTrustingAssets
  • getTrustingAssetsV2
  • getVenues
  • hasRole
  • hasRoles
  • hasValidCdd
  • isCddProvider
  • isEqual
  • isGcMember
  • toHuman
  • Static generateUuid
  • Static unserialize

Was this helpful?

  1. Classes

Identity

PreviousIdentitiesNextIdentityAuthorizations

Last updated 2 years ago

Was this helpful?

Represents an Identity in the Polymesh blockchain

Hierarchy

  • ‹UniqueIdentifiers, string›

    ↳ Identity

    ↳

Index

Constructors

Properties

Methods

Constructors

constructor

Overrides void

Create an Identity entity

Parameters:

Name
Type

identifiers

UniqueIdentifiers

context

Context

Properties

assetPermissions


authorizations


Protected context

• context: Context


did

• did: string

Identity ID as stored in the blockchain


portfolios


uuid

• uuid: string

Methods

areSecondaryAccountsFrozen

▸ areSecondaryAccountsFrozen(): Promise‹boolean›

Check whether secondary Accounts are frozen

note can be subscribed to

Returns: Promise‹boolean›

Parameters:

Name
Type

callback


checkRoles

Check whether this Identity possesses all specified roles

Parameters:

Name
Type

roles


exists

▸ exists(): Promise‹boolean›

Determine whether this Identity exists on chain

Returns: Promise‹boolean›


getAssetBalance

▸ getAssetBalance(args: object): Promise‹BigNumber›

Retrieve the balance of a particular Asset

note can be subscribed to

Parameters:

â–ª args: object

Name
Type

ticker

string

Returns: Promise‹BigNumber›

Parameters:

â–ª args: object

Name
Type

ticker

string


getHeldAssets

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

note uses the middleware

note supports pagination

Parameters:

â–ªDefault value opts: object= { order: Order.Asc }

Name
Type

order?

Order

size?

BigNumber

start?

BigNumber


getHeldAssetsV2

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

note uses the middlewareV2

note supports pagination

Parameters:

â–ªDefault value opts: object= {}

Name
Type

order?

AssetHoldersOrderBy

size?

BigNumber

start?

BigNumber


getInstructions

Retrieve all Instructions where this Identity is a participant, grouped by status


getPendingDistributions

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

note uses the middleware

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


getPendingInstructions

Retrieve all pending Instructions involving this Identity

deprecated in favor of getInstructions


getPrimaryAccount

Retrieve the primary Account associated with the Identity

note can be subscribed to

Parameters:

Name
Type

callback


getScopeId

▸ getScopeId(args: object): Promise‹string | null›

Retrieve the Scope ID associated to this Identity's Investor Uniqueness Claim for a specific Asset, or null if there is none

Parameters:

â–ª args: object

Name
Type

asset

Returns: Promise‹string | null›


getSecondaryAccounts

Get the list of secondary Accounts related to the Identity

note can be subscribed to

Parameters:

Name
Type

callback


getTrustingAssets

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

note uses the middleware


getTrustingAssetsV2

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

note uses the middlewareV2


getVenues

Retrieve all Venues created by this Identity

note can be subscribed to

Parameters:

Name
Type

callback


hasRole

Check whether this Identity possesses the specified Role

Parameters:

Name
Type

role

Returns: Promise‹boolean›


hasRoles

Check whether this Identity possesses all specified roles

deprecated in favor of checkRoles

Parameters:

Name
Type

roles

Returns: Promise‹boolean›


hasValidCdd

▸ hasValidCdd(): Promise‹boolean›

Check whether this Identity has a valid CDD claim

Returns: Promise‹boolean›


isCddProvider

▸ isCddProvider(): Promise‹boolean›

Check whether this Identity is a CDD provider

Returns: Promise‹boolean›


isEqual

Determine whether this Entity is the same as another one

Parameters:

Name
Type

entity

Returns: boolean


isGcMember

▸ isGcMember(): Promise‹boolean›

Check whether this Identity is Governance Committee member

Returns: Promise‹boolean›


toHuman

â–¸ toHuman(): string

Return the Identity's DID

Returns: string


Static generateUuid

▸ generateUuid‹Identifiers›(identifiers: Identifiers): string

Generate the Entity's UUID from its identifying properties

Type parameters:

â–ª Identifiers

Parameters:

Name
Type
Description

identifiers

Identifiers

Returns: string


Static unserialize

▸ unserialize‹Identifiers›(serialized: string): Identifiers

Unserialize a UUID into its Unique Identifiers

Type parameters:

â–ª Identifiers

Parameters:

Name
Type
Description

serialized

string

UUID to unserialize

Returns: Identifiers

+ new Identity(identifiers: UniqueIdentifiers, context: Context):

Defined in

Returns:

• assetPermissions:

Defined in

• authorizations:

Defined in

Inherited from .

Defined in

Defined in

• portfolios:

Defined in

Inherited from .

Defined in

Defined in

▸ areSecondaryAccountsFrozen(callback: ‹boolean›): Promise‹›

Defined in

‹boolean›

Returns: Promise‹›

▸ checkRoles(roles: []): Promise‹›

Defined in

[]

Returns: Promise‹›

Overrides .

Defined in

Defined in

▸ getAssetBalance(args: object, callback: ‹BigNumber›): Promise‹›

Defined in

▪ callback: ‹BigNumber›

Returns: Promise‹›

▸ getHeldAssets(opts: object): Promise‹‹››

Defined in

Returns: Promise‹‹››

▸ getHeldAssetsV2(opts: object): Promise‹‹››

Defined in

Returns: Promise‹‹››

▸ getInstructions(): Promise‹›

Defined in

Returns: Promise‹›

▸ getPendingDistributions(): Promise‹[]›

Defined in

Returns: Promise‹[]›

▸ getPendingInstructions(): Promise‹[]›

Defined in

Returns: Promise‹[]›

▸ getPrimaryAccount(): Promise‹›

Defined in

Returns: Promise‹›

▸ getPrimaryAccount(callback: ‹›): Promise‹›

Defined in

‹›

Returns: Promise‹›

Defined in

note more on Investor Uniqueness and

| string

▸ getSecondaryAccounts(): Promise‹[]›

Defined in

Returns: Promise‹[]›

▸ getSecondaryAccounts(callback: ‹[]›): Promise‹›

Defined in

‹[]›

Returns: Promise‹›

▸ getTrustingAssets(): Promise‹[]›

Defined in

Returns: Promise‹[]›

▸ getTrustingAssetsV2(): Promise‹[]›

Defined in

Returns: Promise‹[]›

▸ getVenues(): Promise‹[]›

Defined in

Returns: Promise‹[]›

▸ getVenues(callback: ‹[]›): Promise‹›

Defined in

‹[]›

Returns: Promise‹›

▸ hasRole(role: ): Promise‹boolean›

Defined in

▸ hasRoles(roles: []): Promise‹boolean›

Defined in

[]

Defined in

Defined in

▸ isEqual(entity: ‹unknown, unknown›): boolean

Inherited from .

Defined in

‹unknown, unknown›

Defined in

Overrides .

Defined in

Inherited from .

Defined in

Inherited from .

Defined in

Identity
src/api/entities/Identity/index.ts:96
Identity
AssetPermissions
src/api/entities/Identity/index.ts:96
IdentityAuthorizations
src/api/entities/Identity/index.ts:94
src/api/entities/Entity.ts:48
src/api/entities/Identity/index.ts:91
Portfolios
src/api/entities/Identity/index.ts:95
src/api/entities/Entity.ts:46
src/api/entities/Identity/index.ts:649
src/api/entities/Identity/index.ts:650
src/api/entities/Identity/index.ts:398
CheckRolesResult
src/api/entities/Identity/index.ts:779
src/api/entities/Identity/index.ts:163
src/api/entities/Identity/index.ts:164
ResultSet
Asset
src/api/entities/Identity/index.ts:311
ResultSet
Asset
ResultSet
Asset
src/api/entities/Identity/index.ts:356
ResultSet
Asset
GroupedInstructions
src/api/entities/Identity/index.ts:527
GroupedInstructions
DistributionWithDetails
src/api/entities/Identity/index.ts:686
DistributionWithDetails
Instruction
src/api/entities/Identity/index.ts:596
Instruction
PermissionedAccount
src/api/entities/Identity/index.ts:264
PermissionedAccount
src/api/entities/Identity/index.ts:265
src/api/entities/Identity/index.ts:505
here
here
PermissionedAccount
src/api/entities/Identity/index.ts:740
PermissionedAccount
src/api/entities/Identity/index.ts:741
Asset
src/api/entities/Identity/index.ts:433
Asset
Asset
src/api/entities/Identity/index.ts:450
Asset
Venue
src/api/entities/Identity/index.ts:469
Venue
src/api/entities/Identity/index.ts:470
src/api/entities/Identity/index.ts:115
src/api/entities/Identity/index.ts:422
src/api/entities/Identity/index.ts:212
src/api/entities/Identity/index.ts:245
Entity
src/api/entities/Entity.ts:61
src/api/entities/Identity/index.ts:228
src/api/entities/Identity/index.ts:792
src/api/entities/Entity.ts:14
src/api/entities/Entity.ts:23
Entity
DefaultTrustedClaimIssuer
constructor
assetPermissions
authorizations
context
did
portfolios
uuid
areSecondaryAccountsFrozen
checkRoles
exists
getAssetBalance
getHeldAssets
getHeldAssetsV2
getInstructions
getPendingDistributions
getPendingInstructions
getPrimaryAccount
getScopeId
getSecondaryAccounts
getTrustingAssets
getTrustingAssetsV2
getVenues
hasRole
hasRoles
hasValidCdd
isCddProvider
isEqual
isGcMember
toHuman
generateUuid
unserialize
Asset
Entity
CheckpointSchedule
CheckpointSchedule
CheckRolesResult
Entity
PermissionedAccount
PermissionedAccount
Venue
CheckpointSchedule
Entity
CheckpointSchedule
CheckpointSchedule
PermissionedAccount
PermissionedAccount
Venue
context
uuid
isEqual
generateUuid
unserialize
exists
toHuman
SubCallback
UnsubCallback
UnsubCallback
Role
SubCallback
UnsubCallback
SubCallback
UnsubCallback
SubCallback
UnsubCallback
UnsubCallback
SubCallback
UnsubCallback
UnsubCallback
SubCallback
UnsubCallback
UnsubCallback
Role
Role
SubCallback
Role
SubCallback
SubCallback
SubCallback
Role
Role