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
  • Methods
  • Methods
  • freezeSecondaryAccounts
  • getAccount
  • getAccountBalance
  • getSigningAccount
  • getSigningAccounts
  • inviteAccount
  • leaveIdentity
  • modifyPermissions
  • removeSecondaryAccounts
  • revokePermissions
  • subsidizeAccount
  • unfreezeSecondaryAccounts

Was this helpful?

  1. Classes

AccountManagement

PreviousAccountNextAsset

Last updated 2 years ago

Was this helpful?

Handles functionality related to Account Management

Hierarchy

  • AccountManagement

Index

Methods

Methods

freezeSecondaryAccounts

Parameters:

Name
Type

opts?


getAccount

Return an Account instance from an address

Parameters:

â–ª args: object

Name
Type

address

string


getAccountBalance

Get the free/locked POLYX balance of an Account

note can be subscribed to

Parameters:

Name
Type

args?

undefined | object

Parameters:

Name
Type

callback

Parameters:

â–ª args: object

Name
Type

account


getSigningAccount

Return the signing Account, or null if no signing Account has been set


getSigningAccounts

Return a list that contains all the signing Accounts associated to the SDK instance's Signing Manager

throws — if there is no Signing Manager attached to the SDK


inviteAccount

Send an invitation to an Account to join the signing Identity as a secondary Account

Parameters:

Name
Type

args

opts?


leaveIdentity

Disassociate the signing Account from its Identity. This operation can only be done if the signing Account is a secondary Account

Parameters:

Name
Type

opts?


modifyPermissions

Modify all permissions of a list of secondary Accounts associated with the signing Identity

throws if the signing Account is not the primary Account of the Identity whose secondary Account permissions are being modified

Parameters:

Name
Type

args

opts?


removeSecondaryAccounts

Remove a list of secondary Accounts associated with the signing Identity

Parameters:

Name
Type

args

opts?


revokePermissions

Revoke all permissions of a list of secondary Accounts associated with the signing Identity

throws if the signing Account is not the primary Account of the Identity whose secondary Account permissions are being revoked

Parameters:

â–ª args: object

Name
Type

secondaryAccounts


subsidizeAccount

Send an Authorization Request to an Account to subsidize its transaction fees

Parameters:

Name
Type

args

opts?


unfreezeSecondaryAccounts

Unfreeze all of the secondary Accounts in the signing Identity. This will restore their permissions as they were before being frozen

Parameters:

Name
Type

opts?

▸ freezeSecondaryAccounts(opts?: ): Promise‹‹void››

Defined in

Freeze all of the secondary Accounts in the signing Identity. This means revoking their permission to perform any operation on the blockchain and freezing their funds until the Accounts are unfrozen via

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

Returns: Promise‹‹void››

â–¸ getAccount(args: object):

Defined in

Returns:

▸ getAccountBalance(args?: undefined | object): Promise‹›

Defined in

Returns: Promise‹›

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

Defined in

‹›

Returns: Promise‹›

▸ getAccountBalance(args: object, callback: ‹›): Promise‹›

Defined in

string |

▪ callback: ‹›

Returns: Promise‹›

â–¸ getSigningAccount(): | null

Defined in

Returns: | null

▸ getSigningAccounts(): Promise‹[]›

Defined in

Returns: Promise‹[]›

▸ inviteAccount(args: , opts?: ): Promise‹‹››

Defined in

note this will create an which has to be accepted by the targetAccount. An or can fetch its pending Authorization Requests by calling . Also, an Account or Identity can directly fetch the details of an Authorization Request by calling

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

Returns: Promise‹‹››

▸ leaveIdentity(opts?: ): Promise‹‹void››

Defined in

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

Returns: Promise‹‹void››

▸ modifyPermissions(args: , opts?: ): Promise‹‹void››

Defined in

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

Returns: Promise‹‹void››

▸ removeSecondaryAccounts(args: , opts?: ): Promise‹‹void››

Defined in

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

Returns: Promise‹‹void››

▸ revokePermissions(args: object, opts?: ): Promise‹‹void››

Defined in

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

[]

â–ªOptional opts:

Returns: Promise‹‹void››

▸ subsidizeAccount(args: , opts?: ): Promise‹‹››

Defined in

note this will create an which has to be accepted by the beneficiary Account. An or can fetch its pending Authorization Requests by calling . Also, an Account or Identity can directly fetch the details of an Authorization Request by calling

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

Returns: Promise‹‹››

▸ unfreezeSecondaryAccounts(opts?: ): Promise‹‹void››

Defined in

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

Returns: Promise‹‹void››

ProcedureOpts
TransactionQueue
src/AccountManagement.ts:167
NoArgsProcedureMethod
freezeSecondaryAccounts.checkAuthorization
TransactionQueue
Account
src/AccountManagement.ts:248
Account
src/AccountManagement.ts:202
src/AccountManagement.ts:203
src/AccountManagement.ts:204
Account
src/AccountManagement.ts:257
Account
Account
src/AccountManagement.ts:270
Account
InviteAccountParams
ProcedureOpts
TransactionQueue
AuthorizationRequest
src/AccountManagement.ts:157
ProcedureMethod
inviteAccount.checkAuthorization
TransactionQueue
AuthorizationRequest
ProcedureOpts
TransactionQueue
src/AccountManagement.ts:109
NoArgsProcedureMethod
leaveIdentity.checkAuthorization
TransactionQueue
ModifySignerPermissionsParams
ProcedureOpts
TransactionQueue
src/AccountManagement.ts:143
ProcedureMethod
modifyPermissions.checkAuthorization
TransactionQueue
RemoveSecondaryAccountsParams
ProcedureOpts
TransactionQueue
src/AccountManagement.ts:119
ProcedureMethod
removeSecondaryAccounts.checkAuthorization
TransactionQueue
ProcedureOpts
TransactionQueue
src/AccountManagement.ts:131
ProcedureMethod
revokePermissions.checkAuthorization
ProcedureOpts
TransactionQueue
SubsidizeAccountParams
ProcedureOpts
TransactionQueue
AuthorizationRequest
src/AccountManagement.ts:191
ProcedureMethod
subsidizeAccount.checkAuthorization
TransactionQueue
AuthorizationRequest
ProcedureOpts
TransactionQueue
src/AccountManagement.ts:177
NoArgsProcedureMethod
unfreezeSecondaryAccounts.checkAuthorization
TransactionQueue
freezeSecondaryAccounts
getAccount
getAccountBalance
getSigningAccount
getSigningAccounts
inviteAccount
leaveIdentity
modifyPermissions
removeSecondaryAccounts
revokePermissions
subsidizeAccount
unfreezeSecondaryAccounts
unfreezeSecondaryAccounts
ProcedureOpts
Account
InviteAccountParams
ProcedureOpts
ProcedureOpts
ModifySignerPermissionsParams
ProcedureOpts
RemoveSecondaryAccountsParams
ProcedureOpts
Account
SubsidizeAccountParams
ProcedureOpts
ProcedureOpts
Authorization Request
Account
Identity
Authorization Request
Account
Identity
authorizations.getReceived
authorizations.getOne
authorizations.getReceived
authorizations.getOne
AccountBalance
AccountBalance
SubCallback
AccountBalance
UnsubCallback
UnsubCallback
SubCallback
AccountBalance
UnsubCallback
SubCallback
AccountBalance
UnsubCallback
SubCallback
AccountBalance