-
Notifications
You must be signed in to change notification settings - Fork 11
api.entities.Account.Staking.Staking
api/entities/Account/Staking.Staking
Handles Account staking related functionality
-
Namespace
<Account
>↳
Staking
▸ getCommission(): Promise
<null
| StakingCommission
>
Promise
<null
| StakingCommission
>
null unless the account is seeking nominations as a validator
api/entities/Account/Staking/index.ts:216
▸ getController(): Promise
<null
| Account
>
Fetch the controller associated to this account if there is one
Promise
<null
| Account
>
null unless the account is a stash
Note
can be subscribed to, if connected to node using a web socket
Note
a stash can be its own controller
api/entities/Account/Staking/index.ts:169
▸ getController(callback
): Promise
<UnsubCallback
>
Name | Type |
---|---|
callback |
SubCallback <null | Account > |
Promise
<UnsubCallback
>
api/entities/Account/Staking/index.ts:170
▸ getLedger(): Promise
<null
| StakingLedger
>
Fetch the ledger information for a stash account
Promise
<null
| StakingLedger
>
null unless the account is a controller
api/entities/Account/Staking/index.ts:32
▸ getNomination(): Promise
<null
| StakingNomination
>
Fetch this account's current nominations
Promise
<null
| StakingNomination
>
null unless the account is a controller
Note
can be subscribed to, if connected to node using a web socket
api/entities/Account/Staking/index.ts:117
▸ getNomination(callback
): Promise
<UnsubCallback
>
Name | Type |
---|---|
callback |
SubCallback <null | StakingNomination > |
Promise
<UnsubCallback
>
api/entities/Account/Staking/index.ts:118
▸ getPayee(): Promise
<null
| StakingPayee
>
Fetch the payee that will receive a stash account's rewards
Promise
<null
| StakingPayee
>
Note
null is returned when the account is not a stash
Note
can be subscribed to, if connected to node using a web socket
api/entities/Account/Staking/index.ts:57
▸ getPayee(callback
): Promise
<UnsubCallback
>
Name | Type |
---|---|
callback |
SubCallback <null | StakingPayee > |
Promise
<UnsubCallback
>
Entities
- Account
- Asset
- Authorization Request
- Checkpoint
- Checkpoint Schedule
- Corporate Action
- Corporate Action Base
- Custom Permission Group
- Default Portfolio
- Default Trusted Claim Issuer
- Dividend Distribution
- Entity
- Identity
- Instruction
- Known Permission Group
- Metadata Entry
- Multi Sig Proposal
- Numbered Portfolio
- Offering
- Permission Group
- Portfolio
- Subsidies
- Subsidy
- Ticker Reservation
- Venue
- Authorizations
- Types