Skip to content

Interface: PlainStaker

JSON-compatible and human-readable format of a staker. E.g. delegation addresses are presented in their human-readable format.

Properties

balance

balance: number

The staker's active balance.

Defined in

web.d.ts:393


delegation

delegation: string

The address of the validator for which the staker is delegating its stake for. If it is not delegating to any validator, this will be set to None.

Defined in

web.d.ts:398


inactiveBalance

inactiveBalance: number

The staker's inactive balance. Only released inactive balance can be withdrawn from the staking contract. Stake can only be re-delegated if the whole balance of the staker is inactive and released (or if there was no prior delegation). For inactive balance to be released, the maximum of the inactive and the validator's jailed periods must have passed.

Defined in

web.d.ts:405


inactiveFrom

inactiveFrom: number

The block number at which the inactive balance was last inactivated. If the stake is currently delegated to a jailed validator, the maximum of its jail release and the inactive release is taken. Re-delegation requires the whole balance of the staker to be inactive. The stake can only effectively become inactive on the next election block. Thus, this may contain a future block height.

Defined in

web.d.ts:413


inactiveRelease

inactiveRelease: number

The block number from which the staker's inactive_balance gets released, e.g. for retirement. Re-delegation requires the whole balance of the staker to be inactive and released, as well as its delegated validator to not currently be jailed.

Defined in

web.d.ts:419


retiredBalance

retiredBalance: number

The staker's retired balance. Retired balance can only be withdrawn, thus retiring is irreversible. Only released inactive balance can be retired, so the maximum of the inactive and the validator's jailed periods must have passed. Once retired, the funds are immediately available to be withdrawn (removed).

Defined in

web.d.ts:426