Polymesh SDK API Reference
v4.0.0
v4.0.0
  • Introduction
  • Globals
  • Classes
    • Account
    • AuthorizationRequest
    • Authorizations
    • Claims
    • Compliance
    • Context
    • Count
    • CurrentAccount
    • CurrentIdentity
    • DefaultPortfolio
    • DefaultTrustedClaimIssuer
    • Documents
    • Entity
    • Identity
    • IdentityAuthorizations
    • Instruction
    • Issuance
    • Middleware
    • NumberedPortfolio
    • Offerings
    • Percentage
    • Polymesh
    • PolymeshError
    • PolymeshTransaction
    • PolymeshTransactionBase
    • PolymeshTransactionBatch
    • Portfolio
    • Portfolios
    • Requirements
    • SecurityToken
    • Settlements
    • Sto
    • TickerReservation
    • TokenHolders
    • TransactionQueue
    • TransferRestrictionBase
    • TransferRestrictions
    • TrustedClaimIssuers
    • Venue
  • Enums
    • AffirmationStatus
    • AuthorizationType
    • ClaimType
    • ConditionTarget
    • ConditionType
    • CountryCode
    • ErrorCode
    • InstructionStatus
    • InstructionType
    • KnownTokenType
    • ProposalStage
    • RoleType
    • ScopeType
    • StoStatus
    • TickerReservationStatus
    • TokenIdentifierType
    • TransactionArgumentType
    • TransactionQueueStatus
    • TransactionStatus
    • TransferStatus
    • TxGroup
    • VenueType
  • Interfaces
    • AccountBalance
    • AccountData
    • ActiveTransferRestrictions
    • AddBatchTransactionOpts
    • AddClaimsParams
    • AddInstructionParams
    • AddInvestorUniquenessClaimParams
    • AddTransactionOpts
    • AddTransactionOptsBase
    • ArrayTransactionArgument
    • CddProviderRole
    • ClaimData
    • ClaimScope
    • ClaimTarget
    • ComplexTransactionArgument
    • ConditionCompliance
    • ConnectParamsBase
    • ConstructorParams
    • ConsumeParams
    • CountTransferRestriction
    • CountTransferRestrictionInput
    • CreateSecurityTokenParams
    • CreateVenueParams
    • DeletePortfolioParams
    • EditClaimsParams
    • EventIdentifier
    • ExtrinsicData
    • Fees
    • HistoricSettlement
    • IdentityBalance
    • IdentityWithClaims
    • InstructionAffirmation
    • Investment
    • InviteAccountParams
    • IssueTokensParams
    • KeyringPair
    • Leg
    • MiddlewareConfig
    • ModifyInstructionAffirmationParams
    • ModifyPrimaryIssuanceAgentParams
    • ModifySignerPermissionsParams
    • ModifyTokenTrustedClaimIssuersAddSetParams
    • ModifyTokenTrustedClaimIssuersRemoveParams
    • MoveFundsParams
    • NetworkProperties
    • PaginationOptions
    • PercentageTransferRestriction
    • PercentageTransferRestrictionInput
    • Permissions
    • PermissionsLike
    • PlainTransactionArgument
    • PortfolioBalance
    • PortfolioCustodianRole
    • PortfolioMovement
    • ProcedureAuthorizationStatus
    • ProposalDetails
    • ProposalTimeFrames
    • ProposalVote
    • RedeemTokenParams
    • RegisterIdentityParams
    • RemoveSecondaryKeysParams
    • RenamePortfolioParams
    • Requirement
    • RequirementCompliance
    • ReserveTickerParams
    • ResultSet
    • RevokeClaimsParams
    • Scope
    • SecondaryKey
    • SecurityTokenDetails
    • SetAssetRequirementsParams
    • SetCountTransferRestrictionsParams
    • SetCustodianParams
    • SetPercentageTransferRestrictionsParams
    • SetTokenDocumentsParams
    • SettlementLeg
    • SimpleEnumTransactionArgument
    • StoDetails
    • StoTier
    • StoWithDetails
    • TickerOwnerRole
    • TickerReservationDetails
    • Tier
    • ToggleFreezeStoParams
    • ToggleFreezeTransfersParams
    • TogglePauseRequirementsParams
    • TokenDocument
    • TokenHolderOptions
    • TokenHolderProperties
    • TokenIdentifier
    • TokenOwnerRole
    • TokenPiaRole
    • TransferPolyXParams
    • TransferRestrictionInputBase
    • TransferTokenOwnershipParams
    • TrustedClaimIssuer
    • UiKeyring
    • UniqueIdentifiers
    • VenueDetails
    • VenueOwnerRole
Powered by GitBook
On this page
  • Hierarchy
  • Index
  • Constructors
  • Properties
  • Methods
  • Constructors
  • constructor
  • Properties
  • authorizations
  • Protected context
  • createVenue
  • did
  • inviteAccount
  • modifyPermissions
  • portfolios
  • removeSecondaryKeys
  • revokePermissions
  • uuid
  • Methods
  • getHeldTokens
  • getPendingInstructions
  • getPrimaryKey
  • getScopeId
  • getSecondaryKeys
  • getTokenBalance
  • getTrustingTokens
  • getVenues
  • hasRole
  • hasRoles
  • hasValidCdd
  • isCddProvider
  • isGcMember
  • Static generateUuid
  • Static unserialize

Was this helpful?

  1. Classes

CurrentIdentity

PreviousCurrentAccountNextDefaultPortfolio

Last updated 4 years ago

Was this helpful?

Represents the Identity associated to the current

Hierarchy

↳

↳ CurrentIdentity

Index

Constructors

Properties

Methods

Constructors

constructor

Create a CurrentIdentity entity

Parameters:

Name

Type

identifiers

context

Properties

authorizations

Protected context

createVenue

Create a Venue

did

• did: string

identity ID as stored in the blockchain

inviteAccount

Send an invitation to an Account to join this Identity

note this may create AuthorizationRequest which have to be accepted by the corresponding Account. An Account or Identity can fetch its pending Authorization Requests by calling authorizations.getReceived

param list of allowed permissions (optional, defaults to no permissions)

param array of Security Tokens (or tickers) for which to allow permission. Set null to allow all (optional, no permissions if not passed)

param array of tags associated with the transaction that will be executed for which to allow permission. Set null to allow all (optional, no permissions if not passed)

param array of portfolios for which to allow permission. Set null to allow all (optional, no permissions if not passed)

modifyPermissions

Modify all permissions of a list of secondary keys associated with the Identity

param list of permissions

param array of Security Tokens on which to grant permissions. A null value represents full permissions

param array of transaction tags that the Secondary Key has permission to execute. A null value represents full permissions

param array of Portfolios for which to grant permissions. A null value represents full permissions

portfolios

removeSecondaryKeys

Remove a list of secondary keys associated with the Identity

revokePermissions

• revokePermissions: ProcedureMethod‹object, void›

Revoke all permissions of a list of secondary keys associated with the Identity

uuid

• uuid: string

Methods

getHeldTokens

Retrieve a list of all tokens 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?

undefined | number

start?

undefined | number

getPendingInstructions

Retrieve all pending Instructions involving the Current Identity

getPrimaryKey

▸ getPrimaryKey(): Promise‹string›

Retrieve the primary key associated with the Identity

note can be subscribed to

Returns: Promise‹string›

Parameters:

Name

Type

callback

getScopeId

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

Retrieve the Scope ID associated to this Identity's Investor Uniqueness Claim for a specific Security Token

Parameters:

â–ª args: object

Name

Type

token

Returns: Promise‹string›

getSecondaryKeys

Get the list of secondary keys related to the Identity

note can be subscribed to

Parameters:

Name

Type

callback

getTokenBalance

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

Retrieve the balance of a particular Security Token

note can be subscribed to

Parameters:

â–ª args: object

Name

Type

ticker

string

Returns: Promise‹BigNumber›

Parameters:

â–ª args: object

Name

Type

ticker

string

getTrustingTokens

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

note uses the middleware

Parameters:

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

Name

Type

order

Order

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

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›

isGcMember

▸ isGcMember(): Promise‹boolean›

Check whether this Identity is Governance Committee member

Returns: Promise‹boolean›

Static generateUuid

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

Generate the Entity's UUID from its identifying properties

Type parameters:

â–ª Identifiers: object

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: object

Parameters:

Name

Type

Description

serialized

string

UUID to unserialize

Returns: Identifiers

+ new CurrentIdentity(identifiers: , context: ):

Overrides .

Defined in

Returns:

• authorizations:

Inherited from .

Defined in

• context:

Inherited from .

Defined in

• createVenue: ProcedureMethod‹, ›

Defined in

Inherited from .

Defined in

• inviteAccount: ProcedureMethod‹, void›

Defined in

• modifyPermissions: ProcedureMethod‹, void›

Defined in

• portfolios:

Inherited from .

Defined in

• removeSecondaryKeys: ProcedureMethod‹, void›

Defined in

Defined in

Inherited from .

Defined in

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

Inherited from .

Defined in

Returns: Promise‹‹››

▸ getPendingInstructions(): Promise‹[]›

Defined in

Returns: Promise‹[]›

Inherited from .

Defined in

▸ getPrimaryKey(callback: ‹string›): Promise‹›

Inherited from .

Defined in

‹string›

Returns: Promise‹›

Inherited from .

Defined in

note more on Investor Uniqueness:

| string

▸ getSecondaryKeys(): Promise‹[]›

Defined in

Returns: Promise‹[]›

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

Defined in

‹[]›

Returns: Promise‹›

Inherited from .

Defined in

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

Inherited from .

Defined in

▪ callback: ‹BigNumber›

Returns: Promise‹›

▸ getTrustingTokens(args: object): Promise‹[]›

Inherited from .

Defined in

Returns: Promise‹[]›

▸ getVenues(): Promise‹[]›

Inherited from .

Defined in

Returns: Promise‹[]›

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

Inherited from .

Defined in

‹[]›

Returns: Promise‹›

▸ hasRole(role: ): Promise‹boolean›

Inherited from .

Defined in

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

Inherited from .

Defined in

[]

Inherited from .

Defined in

Inherited from .

Defined in

Inherited from .

Defined in

Inherited from .

Defined in

Inherited from .

Defined in

UniqueIdentifiers
Context
CurrentIdentity
src/api/entities/CurrentIdentity.ts:34
CurrentIdentity
IdentityAuthorizations
src/api/entities/Identity/index.ts:73
Context
src/api/entities/Entity.ts:48
CreateVenueParams
Venue
src/api/entities/CurrentIdentity.ts:122
src/api/entities/Identity/index.ts:70
InviteAccountParams
src/api/entities/CurrentIdentity.ts:117
ModifySignerPermissionsParams
src/api/entities/CurrentIdentity.ts:103
Portfolios
src/api/entities/Identity/index.ts:74
RemoveSecondaryKeysParams
src/api/entities/CurrentIdentity.ts:88
src/api/entities/CurrentIdentity.ts:93
src/api/entities/Entity.ts:46
ResultSet
SecurityToken
src/api/entities/Identity/index.ts:290
ResultSet
SecurityToken
Instruction
src/api/entities/CurrentIdentity.ts:127
Instruction
src/api/entities/Identity/index.ts:255
src/api/entities/Identity/index.ts:256
src/api/entities/Identity/index.ts:396
https://developers.polymesh.live/confidential_identity
SecondaryKey
src/api/entities/CurrentIdentity.ts:69
SecondaryKey
src/api/entities/CurrentIdentity.ts:70
src/api/entities/Identity/index.ts:155
src/api/entities/Identity/index.ts:156
SecurityToken
src/api/entities/Identity/index.ts:341
SecurityToken
Venue
src/api/entities/Identity/index.ts:362
Venue
src/api/entities/Identity/index.ts:363
src/api/entities/Identity/index.ts:92
src/api/entities/Identity/index.ts:330
src/api/entities/Identity/index.ts:203
src/api/entities/Identity/index.ts:236
src/api/entities/Identity/index.ts:219
src/api/entities/Entity.ts:14
src/api/entities/Entity.ts:23
Account
Identity
constructor
authorizations
context
createVenue
did
inviteAccount
modifyPermissions
portfolios
removeSecondaryKeys
revokePermissions
uuid
getHeldTokens
getPendingInstructions
getPrimaryKey
getScopeId
getSecondaryKeys
getTokenBalance
getTrustingTokens
getVenues
hasRole
hasRoles
hasValidCdd
isCddProvider
isGcMember
generateUuid
unserialize
UniqueIdentifiers
Context
SecurityToken
Identity
Identity
Entity
Identity
Identity
Entity
Identity
Identity
Identity
Identity
SecondaryKey
Identity
Identity
Identity
Identity
Venue
Identity
Identity
Identity
Identity
Identity
Identity
Entity
Entity
SecondaryKey
Venue
context
uuid
generateUuid
unserialize
SubCallback
UnsubCallback
UnsubCallback
SubCallback
UnsubCallback
UnsubCallback
SubCallback
UnsubCallback
SubCallback
UnsubCallback
SubCallback
UnsubCallback
UnsubCallback
Role
Role
SubCallback
SubCallback
SubCallback
Role
Role
constructor
authorizations
did
portfolios
getHeldTokens
getPrimaryKey
getPrimaryKey
getScopeId
getTokenBalance
getTokenBalance
getTrustingTokens
getVenues
getVenues
hasRole
hasRoles
hasValidCdd
isCddProvider
isGcMember