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
WireguardorOpenVPN- Once you've established connection:
- Download your
swarm.keyfile:- Download your password.tar file and extract your password:
- Unstake with the commands below
Stake Registry - https://github.com/ethersphere/storage-incentives/blob/8d91927b183ec622a2c809b9a58b6ebe15e16d9a/deployments/mainnet/StakeRegistry.json
| Version | Address |
|---|---|
| pre 2.2.0 | 0x781c6D1f0eaE6F1Da1F604c6cDCcdB8B76428ba7 |
| pre 2.3.0 | 0xBe212EA1A4978a64e8f7636Ae18305C38CA092Bd |
| current | 0x445B848e16730988F871c4a09aB74526d27c2Ce8 |
tsx src/index.ts unstake <path-to-swarm-key-file> <password> <gnosis-rpc-url> --unstake-contract <contract-address>
tsx src/index.ts unstake-with-pk <private-key> <gnosis-rpc-url> --unstake-contract <contract-address>
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:1633To 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
