Class: Account
api/entities/Account.Account
Represents an Account in the Polymesh blockchain. Accounts can hold POLYX, control Identities and vote on proposals (among other things)
Hierarchy
Properties
address
• address: string
Polymesh-specific address of the Account. Serves as an identifier
Defined in
api/entities/Account/index.ts:86
authorizations
• authorizations: Authorizations
<Account
>
Defined in
api/entities/Account/index.ts:95
key
• key: string
A hex representation of the cryptographic public key of the Account. This is consistent across Substrate chains, while the address depends on the chain as well.
Defined in
api/entities/Account/index.ts:92
subsidies
• subsidies: Subsidies
Defined in
api/entities/Account/index.ts:96
uuid
• uuid: string
Inherited from
Defined in
Methods
checkPermissions
▸ checkPermissions(permissions
): Promise
<CheckPermissionsResult
<Account
>>
Check if this Account possesses certain Permissions to act on behalf of its corresponding Identity
Parameters
Name | Type |
---|---|
permissions | SimplePermissions |
Returns
Promise
<CheckPermissionsResult
<Account
>>
which permissions the Account is missing (if any) and the final result
Defined in
api/entities/Account/index.ts:377
exists
▸ exists(): Promise
<boolean
>
Determine whether this Account exists on chain
Returns
Promise
<boolean
>
Overrides
Defined in
api/entities/Account/index.ts:460
getBalance
▸ getBalance(): Promise
<Balance
>
Get the free/locked POLYX balance of the Account
Returns
Promise
<Balance
>
Note
can be subscribed to, if connected to node using a web socket
Defined in
api/entities/Account/index.ts:119
▸ getBalance(callback
): Promise
<UnsubCallback
>
Parameters
Name | Type |
---|---|
callback | SubCallback <Balance > |
Returns
Promise
<UnsubCallback
>
Defined in
api/entities/Account/index.ts:120
getCurrentNonce
▸ getCurrentNonce(): Promise
<BigNumber
>
Retrieve the current nonce for this Account
Returns
Promise
<BigNumber
>
Defined in
api/entities/Account/index.ts:474
getIdentity
▸ getIdentity(): Promise
<null
| Identity
>
Retrieve the Identity associated to this Account (null if there is none)
Returns
Promise
<null
| Identity
>
Defined in
api/entities/Account/index.ts:164
getMultiSig
▸ getMultiSig(): Promise
<null
| MultiSig
>
Fetch the MultiSig this Account is part of. If this Account is not a signer on any MultiSig, return null
Returns
Promise
<null
| MultiSig
>
Defined in
api/entities/Account/index.ts:432
getNextAssetId
▸ getNextAssetId(): Promise
<string
>
Returns next assetID that will be generated for this Identity
Returns
Promise
<string
>