Account
Last updated
Was this helpful?
Last updated
Was this helpful?
Represents an account in the Polymesh blockchain. Accounts can hold POLYX, control Identities and vote on proposals (among other things)
‹UniqueIdentifiers›
↳ Account
↳
• address: string
Polymesh-specific address of the account. Serves as an identifier
Protected
context• key: string
public key of the account. This is a hex representation of the address that is transversal to any Substrate chain
• uuid: string
Get the free/locked POLYX balance of the account
note
can be subscribed to
Parameters:
Name
Type
callback
Retrieve the Identity associated to this Account (null if there is none)
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
Whether this Entity is the same as another one
Parameters:
Name
Type
entity
Returns: 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
Defined in
• authorizations: ‹›
Defined in
• context:
Inherited from .
Defined in
Defined in
Inherited from .
Defined in
▸ getBalance(): Promise‹›
Defined in
Returns: Promise‹›
â–¸ getBalance(callback
: ‹›): Promise‹›
Defined in
‹›
Returns: Promise‹›
▸ getIdentity(): Promise‹ | null›
Defined in
Returns: Promise‹ | null›
â–¸ getTransactionHistory(filters
: object): Promise‹‹››
Defined in
Returns: Promise‹‹››
â–¸ isEqual(entity
: ‹object›): boolean
Inherited from .
Defined in
‹object›
Inherited from .
Defined in
Inherited from .
Defined in