Account
Represents an account in the Polymesh blockchain. Accounts can hold POLYX, control Identities and vote on proposals (among other things)
Hierarchy
↳ Account
Index
Properties
Methods
Properties
address
• address: string
Polymesh-specific address of the account. Serves as an identifier
authorizations
Protected
context
Protected
contextkey
• 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:
getIdentity
Retrieve the Identity associated to this Account (null if there is none)
getPermissions
▸ getPermissions(): Promise‹Permissions›
Retrieve the Permissions this Signer has as a Signing Key for its corresponding Identity
Returns: Promise‹Permissions›
getTransactionHistory
Retrieve a list of transactions signed by this account. Can be filtered using parameters
note
uses the middleware
Parameters:
▪Default value
filters: object= {}
hasPermissions
Check if this Account possesses certain Permissions for its corresponding Identity
Parameters:
Returns: Promise‹boolean›
isEqual
Whether this Entity is the same as another one
Parameters:
Returns: boolean
isFrozen
▸ isFrozen(): Promise‹boolean›
Check whether this Account is frozen. If frozen, it cannot perform any action until the primary key of the Identity unfreezes all secondary keys
Returns: Promise‹boolean›
leaveIdentity
Leave the Account's Identity. This operation can only be done if the Account is a secondary key for the Identity
Parameters:
toJson
▸ toJson(): string
Return the Account's address
Returns: string
Static
generateUuid
Static
generateUuid▸ generateUuid‹Identifiers›(identifiers
: Identifiers): string
Generate the Entity's UUID from its identifying properties
Type parameters:
▪ Identifiers
Parameters:
Returns: string
Static
unserialize
Static
unserialize▸ unserialize‹Identifiers›(serialized
: string): Identifiers
Unserialize a UUID into its Unique Identifiers
Type parameters:
▪ Identifiers
Parameters:
Returns: Identifiers
Last updated