Skip to content

Instantly share code, notes, and snippets.

@deckb
Created November 6, 2018 15:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save deckb/ea6d230947f5543314d0ed52e4a2a633 to your computer and use it in GitHub Desktop.
Save deckb/ea6d230947f5543314d0ed52e4a2a633 to your computer and use it in GitHub Desktop.
  1. Check account
> cleos get account bob1234512341
# ...
EOS balances:
     liquid:        99975.0000 EOS
     staked:       200000.0000 EOS
     unstaking:         0.0000 EOS
     total:        299975.0000 EOS

producers:     <not voted>
  1. Unstake 1000 EOS
# unstake
> cleos system undelegatebw bob123451234 bob123451234 "1000.0000 EOS" "0.0000 EOS"
  1. Check account
> cleos get account bob123451234
# ...
EOS balances:
     liquid:        99975.0000 EOS
     staked:       199000.0000 EOS
     unstaking:      1000.0000 EOS
     total:        299975.0000 EOS

producers:     <not voted>
  1. Stake Tokens
> cleos system delegatebw bob123451234 bob123451234 "1100.0000 EOS" "0.0000 EOS"
executed transaction: 0734e28b134f53266daad8d38f9843d3bd86be737fc1e871766bf3a4e8f541ae  144 bytes  128583 us
#         eosio <= eosio::delegatebw            {"from":"bob123451234","receiver":"bob123451234","stake_net_quantity":"1100.0000 EOS","stake_cpu_qua...
#   eosio.token <= eosio.token::transfer        {"from":"bob123451234","to":"eosio.stake","quantity":"100.0000 EOS","memo":"stake bandwidth"}
#  bob123451234 <= eosio.token::transfer        {"from":"bob123451234","to":"eosio.stake","quantity":"100.0000 EOS","memo":"stake bandwidth"}
#   eosio.stake <= eosio.token::transfer        {"from":"bob123451234","to":"eosio.stake","quantity":"100.0000 EOS","memo":"stake bandwidth"}
  1. Check account again
> cleos get account bob123451234
# ...
EOS balances:
     liquid:        99875.0000 EOS
     staked:       200100.0000 EOS
     unstaking:         0.0000 EOS
     total:        299975.0000 EOS

producers:     <not voted>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment