Polymesh SDK API Reference
v14.1.0
v14.1.0
  • 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
  • getInstructions
  • getPendingDistributions
  • getPendingInstructions
  • getPrimaryAccount
  • getScopeId
  • getSecondaryAccounts
  • getTrustingAssets
  • getVenues
  • hasRole
  • hasRoles
  • hasValidCdd
  • isCddProvider
  • isEqual
  • isGcMember
  • toJson
  • 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


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


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›


toJson

â–¸ toJson(): 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‹‹››

▸ 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‹[]›

▸ 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:94
Identity
AssetPermissions
src/api/entities/Identity/index.ts:94
IdentityAuthorizations
src/api/entities/Identity/index.ts:92
src/api/entities/Entity.ts:48
src/api/entities/Identity/index.ts:89
Portfolios
src/api/entities/Identity/index.ts:93
src/api/entities/Entity.ts:46
src/api/entities/Identity/index.ts:583
src/api/entities/Identity/index.ts:584
src/api/entities/Identity/index.ts:351
CheckRolesResult
src/api/entities/Identity/index.ts:713
src/api/entities/Identity/index.ts:161
src/api/entities/Identity/index.ts:162
ResultSet
Asset
src/api/entities/Identity/index.ts:309
ResultSet
Asset
GroupedInstructions
src/api/entities/Identity/index.ts:461
GroupedInstructions
DistributionWithDetails
src/api/entities/Identity/index.ts:620
DistributionWithDetails
Instruction
src/api/entities/Identity/index.ts:530
Instruction
PermissionedAccount
src/api/entities/Identity/index.ts:262
PermissionedAccount
src/api/entities/Identity/index.ts:263
src/api/entities/Identity/index.ts:439
here
here
PermissionedAccount
src/api/entities/Identity/index.ts:674
PermissionedAccount
src/api/entities/Identity/index.ts:675
Asset
src/api/entities/Identity/index.ts:386
Asset
Venue
src/api/entities/Identity/index.ts:403
Venue
src/api/entities/Identity/index.ts:404
src/api/entities/Identity/index.ts:113
src/api/entities/Identity/index.ts:375
src/api/entities/Identity/index.ts:210
src/api/entities/Identity/index.ts:243
Entity
src/api/entities/Entity.ts:61
src/api/entities/Identity/index.ts:226
src/api/entities/Identity/index.ts:726
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
getInstructions
getPendingDistributions
getPendingInstructions
getPrimaryAccount
getScopeId
getSecondaryAccounts
getTrustingAssets
getVenues
hasRole
hasRoles
hasValidCdd
isCddProvider
isEqual
isGcMember
toJson
generateUuid
unserialize
Asset
Entity
CheckpointSchedule
CheckpointSchedule
CheckRolesResult
Entity
PermissionedAccount
PermissionedAccount
Venue
CheckpointSchedule
Entity
CheckpointSchedule
CheckpointSchedule
PermissionedAccount
PermissionedAccount
Venue
context
uuid
isEqual
generateUuid
unserialize
exists
toJson
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