CurrentAccount
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
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 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= {}
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
Static
generateUuid
Static
generateUuid▸ generateUuid‹Identifiers›(identifiers
: Identifiers): string
Generate the Entity's UUID from its identifying properties
Type parameters:
▪ Identifiers: object
Parameters:
Returns: string
Static
unserialize
Static
unserialize▸ unserialize‹Identifiers›(serialized
: string): Identifiers
Unserialize a UUID into its Unique Identifiers
Type parameters:
▪ Identifiers: object
Parameters:
Returns: Identifiers
Last updated