Unstake FIO Tokens

This action unstakes FIO Tokens. User can unstake any amount previously staked.

When user unstakes FIO Tokens they "exchange" SRPs back into FIO Tokens at the current Rate of Exchange. Since the ROE is likely to be higher at time of unstake, they will end up with more FIO Tokens than originally staked.

After FIO Tokens are unstaked, they remain locked for a period of 7 days. To check exactly when they become available call /get_locks.

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: unstakefio

SDK Sandbox Example

Stackblitz

Body Params
integer
required

Amount of FIO Tokens to unstake 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