Stake FIO Tokens

This action stakes FIO Tokens. User can stake any available FIO Token amount in their account at any point in time. To stake, the account has to be voting for at least 1 BP or proxying/auto-proxying. The auto-proxy can be acomplished in this action by passing a TPID which is also a proxy.

The FIO Tokens do not actually leave the user's account, but are instead "locked" and cannot be spent until unstaked.

When tokens are staked, they cannot be transferred, used to pay a FIO Chain fee, or locked. Tokens that are Staked do count towards voting power of account.

When user stakes FIO Tokens they "exchange" FIO Tokens for Staking Reward Points (SRPs) at then current Rate of Exchange (ROE). SRP is not an actual token and cannot be transferred. It simply acts as a representation of future staking rewards and is attached to the account which is staking.

See Staking FIO Tokens Guide for more information.

This action has to be serialized and signed!

Please note that this action has to be be serialized and signed before it's sent to the blockchain. The request object below only represents the action specific parameters and action specific response. See Write Transactions Guide for more information.

Actions parameters

  • account: fio.staking
  • name: stakefio

SDK Sandbox Example

Stackblitz

Body Params
integer
required

Amount of FIO Tokens to stake in SUFs.

string
required
length between 3 and 64

FIO Handle is required if using bundled transactions to pay. May be left empty if paying a fee instead. It used to be called FIO Address, so you will still see it referred to as such.

integer
required
Defaults to 10000000000000

Maximum amount of SUFs the user is willing to pay for on-chain fee. Should be preceded by /get_fee for correct value.

Alternatively, you can set this number to a very high value, e.g. 10000000000000, since the user will only be charged the actual amount of the fee.

See

string
required
length between 3 and 64
Defaults to vitalik@safu

FIO Handle of the wallet which generated this transaction. This FIO Handle will be paid 10% of the fee collected. Set to empty if not known.

See Transaction Provider ID (TPID) Guide for more information.

string
required

Represents FIO Account which will execute the action. In most cases this is the hashed FIO Public Key.

Response

Language
URL
LoadingLoading…
Response
Choose an example:
application/json