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.
node
>= 20
git clone https://github.com/w3rkspacelabs/bzz-unstake-cli.git
cd bzz-unstake-cli
npm install
- Connect to your dappnode using
Wireguard
orOpenVPN
- Once you've established connection:
- Download your
swarm.key
file:- Download your password.tar file and extract your password:
- Unstake with the commands below
tsx src/index.ts unstake <path-to-swarm-key-file> <password> <gnosis-rpc-url>
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!
Once the xBZZ
is unstaked, you may now stake your prefered amount of xBZZ
(minimum 10 xBZZ
)
Dappnode users may restake using the bee dashboard at:
To stake 10 xBZZ:
swarm-cli stake --deposit 100000000000000000 --bee-api-url http://bee.swarm.public.dappnode:1633
To stake 10 xBZZ:
curl -X POST http://bee.swarm.public.dappnode:1633/stake/100000000000000000
To restake 10 xBZZ
(100000000000000000 PLUR
)
curl -X POST localhost:1633/stake/100000000000000000
swarm-cli stake --deposit 100000000000000000 --bee-api-url http:localhost:1633