Skip to content

A cli tool to unstake xBZZ from the paused staking contracts.

License

Notifications You must be signed in to change notification settings

w3rkspacelabs/bzz-unstake-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bzz-unstake-cli

A cli tool to unstake xBZZ from the paused staking contract.

Note: if you have migrated to bee 2.2 there is no need to revert to older versions. Doing so may lead to bee data corruption.

Requirements

  • node >= 20

Setup

git clone https://github.com/w3rkspacelabs/bzz-unstake-cli.git
cd bzz-unstake-cli
npm install

Unstaking you xBZZ

Usage

For Dappnode users:

  1. Connect to your dappnode using Wireguard or OpenVPN
  2. Once you've established connection:
  1. Unstake with the commands below

Unstake CLI

Unstake with swarm.key and password

tsx src/index.ts unstake <path-to-swarm-key-file> <password> <gnosis-rpc-url>

Unstake with private key

tsx src/index.ts unstake-with-pk <private-key> <gnosis-rpc-url>

Output:

Staked amount available for withdrawal: 110000000000000000
Withdraw stake transaction sent: 0x123abc7d956606ac0083b0356e4bd5351276b854c732e4f78357a4a722932dfc
Withdraw stake transaction completed!

Restaking your xBZZ

Once the xBZZ is unstaked, you may now stake your prefered amount of xBZZ (minimum 10 xBZZ )

For Dappnode users:

Option 1: Using bee dashboard on Dappnode

Dappnode users may restake using the bee dashboard at:

Option 2: Using swarm-cli with Dappnode

To stake 10 xBZZ:

swarm-cli stake --deposit 100000000000000000 --bee-api-url http://bee.swarm.public.dappnode:1633
Option 3: Using curl with Dappnode

To stake 10 xBZZ:

curl -X POST http://bee.swarm.public.dappnode:1633/stake/100000000000000000

Restaking

To restake 10 xBZZ (100000000000000000 PLUR)

Option 1: Using curl

curl -X POST localhost:1633/stake/100000000000000000

Option 2: Using swarm-cli

 swarm-cli stake --deposit 100000000000000000 --bee-api-url http:localhost:1633

About

A cli tool to unstake xBZZ from the paused staking contracts.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published