Documentation
Search…
How To Undelegate Resources

Goal

Return originally delegated resource for an account.
Beware that only the account which originally delegated resource can undelegate.

Before you begin

  • Install the currently supported version of cleos.
  • Ensure the reference system contracts from cyberway.contracts repository is deployed and used to manage system resources.
  • Understand the following:

Steps

alice account withdraws 10 CYBER from bob account which were previously delegated to him: This operation is performed in two steps.
Step_1: Request for a return of delegated staked tokens.
1
$ cleos push action cyber.stake recalluse '[alice, bob, "10.0000 CYBER"]' -p [email protected]
Copied!
or using specialized cleos system command undelegatebw:
1
$ cleos system undelegatebw alice bob "10.0000 CYBER"
Copied!
Step_2: Crediting withdrawn tokens to a stake.
1
$ cleos push action cyber.stake claim '[alice, bob, “CYBER”]' -p [email protected]
Copied!
or using specialized cleos system command claimbw:
1
$ cleos system claimbw alice bob "CYBER"
Copied!
Note The (RAM, NET, CPU, Storage) resources are not directly undelegated. Instead of resources, their total cost is undelegated — number of staked tokens.

Useful links

Last modified 1yr ago