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
  • Properties
  • Methods
  • Properties
  • address
  • authorizations
  • Protected context
  • key
  • uuid
  • Methods
  • getBalance
  • getIdentity
  • getPermissions
  • getTransactionHistory
  • hasPermissions
  • Static generateUuid
  • Static unserialize

Was this helpful?

  1. Classes

CurrentAccount

PreviousCountNextCurrentIdentity

Last updated 4 years ago

Was this helpful?

Represents the current account that is bound to the SDK instance

Hierarchy

↳

↳ CurrentAccount

Index

Properties

Methods

Properties

address

• address: string

Polymesh-specific address of the account. Serves as an identifier

authorizations

Protected context

key

• key: string

public key of the account. This is a hex representation of the address that is transversal to any Substrate chain

uuid

• uuid: string

Methods

getBalance

Get the free/locked POLYX balance of the account

note can be subscribed to

Parameters:

Name

Type

callback

getIdentity

Retrieve the current Identity (null if there is none)

getPermissions

Retrieve the Permissions this Signer has as a Signing Key for its corresponding Identity

getTransactionHistory

Retrieve a list of transactions signed by this account. Can be filtered using parameters

note uses the middleware

Parameters:

â–ªDefault value filters: object= {}

Name

Type

Description

blockNumber?

BigNumber

-

orderBy?

TransactionOrderByInput

-

size?

undefined | number

page size

start?

undefined | number

page offset

success?

undefined | false | true

whether the transaction was successful or not

tag?

TxTag

tag associated with the transaction

hasPermissions

Check if this Account possesses certain Permissions for its corresponding Identity

Parameters:

Name

Type

permissions

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

Inherited from .

Defined in

• authorizations: ‹›

Inherited from .

Defined in

• context:

Inherited from .

Defined in

Inherited from .

Defined in

Inherited from .

Defined in

▸ getBalance(): Promise‹›

Inherited from .

Defined in

Returns: Promise‹›

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

Inherited from .

Defined in

‹›

Returns: Promise‹›

▸ getIdentity(): Promise‹ | null›

Overrides .

Defined in

Returns: Promise‹ | null›

▸ getPermissions(): Promise‹›

Defined in

Returns: Promise‹›

▸ getTransactionHistory(filters: object): Promise‹‹››

Inherited from .

Defined in

Returns: Promise‹‹››

▸ hasPermissions(permissions: ): Promise‹boolean›

Defined in

Inherited from .

Defined in

Inherited from .

Defined in

src/api/entities/Account.ts:45
Authorizations
Account
src/api/entities/Account.ts:53
Context
src/api/entities/Entity.ts:48
src/api/entities/Account.ts:50
src/api/entities/Entity.ts:46
AccountBalance
src/api/entities/Account.ts:73
AccountBalance
src/api/entities/Account.ts:74
CurrentIdentity
src/api/entities/CurrentAccount.ts:18
CurrentIdentity
Permissions
src/api/entities/CurrentAccount.ts:27
Permissions
ResultSet
ExtrinsicData
src/api/entities/Account.ts:124
ResultSet
ExtrinsicData
PermissionsLike
src/api/entities/CurrentAccount.ts:55
src/api/entities/Entity.ts:14
src/api/entities/Entity.ts:23
Account
address
authorizations
context
key
uuid
getBalance
getIdentity
getPermissions
getTransactionHistory
hasPermissions
generateUuid
unserialize
PermissionsLike
Account
Account
Entity
Account
Entity
Account
AccountBalance
Account
Account
Account
Entity
Entity
AccountBalance
context
uuid
generateUuid
unserialize
SubCallback
UnsubCallback
UnsubCallback
SubCallback
address
authorizations
key
getBalance
getBalance
getIdentity
getTransactionHistory