Skip to content

ethersphere/bee-scripts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

56 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bee-scripts

Scripts and small Go programs used by the Bee team to debug and operate Swarm testnet and mainnet nodes.

Most shell scripts target Bee nodes running in a Kubernetes namespace and discover hosts via kubectl get ingress. They typically accept NAMESPACE and DOMAIN as the first arguments.

Layout

  • scripts/ — Bash utilities (see categories below)
  • neighborhood/ — compute neighborhood population from a Swarmscan dump
  • readsi/ — human-readable breakdown of storage incentives (redistribution, stake, postage, reward)
  • private-key/ — print a node's swarm/ethereum private key from its data dir
  • sharky-bits/ — inspect sharky free_* slot files
  • testnet-update/ — roll testnet nodes to a new RC version

Requirements

kubectl, curl, jq, bc, and Go 1.21+ for the programs under neighborhood/, readsi/, private-key/, sharky-bits/.

Scripts overview

Run any script without args to see defaults; most accept [NAMESPACE] [DOMAIN].

Node info & health

  • addr.sh, addr-full.sh — overlay/ethereum addresses per node
  • status.sh, status-peers.sh, bad-status.sh/status snapshot and peer counts
  • reachable.sh — checks isReachable
  • overlay.sh, topology.sh, neighborhoods.sh — overlay, topology, neighborhood depth
  • blocklist.sh, check-peers-overlay.sh — peer/overlay lookups
  • wallet-get.sh, pending_transactions.sh

Chequebook & funds

  • chequebook-balance-get.sh — flags nodes below the 11 BZZ threshold
  • chequebook-deposit.sh — deposit a fixed amount, or --topup-to a target balance
  • chequebook-cashout-withdraw.sh — cash out cheques and withdraw before nuking
  • cashout.sh, deposit.sh

Stake

  • stake.sh, stake-get.sh, stake-del.sh

Stamps & chunks

  • calculate_bzz.sh — BZZ cost for a given depth and duration
  • convert.sh — BZZ ⇄ PLUR conversion
  • dilute.sh, dilute-parallel.sh — bump stamp depth
  • chunk-check.sh — verify chunk presence across nodes
  • parallel_stamps_requests.sh

Cluster ops

  • collect-all.sh — bundles status, overlay, and pod logs into scripts/output/
  • snapshot.sh — pre-upgrade baseline (version, addresses, balances) for every node
  • pprof.sh — fetch pprof profiles from a node's debug endpoint
  • testnet-update/testnet-update.sh — roll bootnode/gateway/storage to a tagged RC
  • basefee.sh — current Ethereum base fee from an RPC endpoint
  • secrets.sh, tag.sh — bulk delete helm-release secrets / git tags
  • deltrx.sh — cancel pending transactions
  • split.sh, rchash.sh, parallel_rpc_requests.sh

About

Scripts by the Bee team to help debug and monitor testnet and mainnet nodes.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors