Account

Represents an account in the Polymesh blockchain. Accounts can hold POLYX, control Identities and vote on proposals (among other things)

Hierarchy

Index

Properties

Methods

Properties

address

address: string

Defined in src/api/entities/Account.ts:47

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

authorizations

authorizations: AuthorizationsAccount

Defined in src/api/entities/Account.ts:55

Protected context

context: Context

Inherited from Entity.context

Defined in src/api/entities/Entity.ts:48

key

key: string

Defined in src/api/entities/Account.ts:52

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

uuid

uuid: string

Inherited from Entity.uuid

Defined in src/api/entities/Entity.ts:46

Methods

getBalance

getBalance(): Promise‹AccountBalance

Defined in src/api/entities/Account.ts:75

Get the free/locked POLYX balance of the account

note can be subscribed to

Returns: Promise‹AccountBalance

getBalance(callback: SubCallbackAccountBalance›): Promise‹UnsubCallback

Defined in src/api/entities/Account.ts:76

Parameters:

Returns: Promise‹UnsubCallback

getIdentity

getIdentity(): Promise‹Identity | null›

Defined in src/api/entities/Account.ts:94

Retrieve the Identity associated to this Account (null if there is none)

Returns: Promise‹Identity | null›

getTransactionHistory

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

Defined in src/api/entities/Account.ts:125

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

Parameters:

Default value filters: object= {}

Returns: Promise‹ResultSetExtrinsicData››

Static generateUuid

generateUuidIdentifiers›(identifiers: Identifiers): string

Inherited from Entity.generateUuid

Defined in src/api/entities/Entity.ts:14

Generate the Entity's UUID from its identifying properties

Type parameters:

Identifiers: object

Parameters:

Returns: string

Static unserialize

unserializeIdentifiers›(serialized: string): Identifiers

Inherited from Entity.unserialize

Defined in src/api/entities/Entity.ts:23

Unserialize a UUID into its Unique Identifiers

Type parameters:

Identifiers: object

Parameters:

Returns: Identifiers

Last updated