Skip to main content

Module dev

Module dev 

Source
Expand description

Bee dev-mode wrapper. The dev-mode endpoint surface is a strict subset of production Bee, so this is mostly a documentation / discovery signal: callers can let bee = DevClient::new(url)?; and use the same accessors they already know from Client.

Mirrors bee-js BeeDev. The endpoints currently exposed (addresses, topology) accept a slimmer payload in dev mode but the same accessors work; bee-rs avoids splitting the type system here and reuses the regular debug handles.

§Endpoints that work

  • Health / readiness / addresses / topology / node-info / status (dev-shaped, simpler JSON — the existing parsers tolerate the missing fields).
  • File upload / download (/bytes, /bzz, /chunks, /soc, /feeds).
  • PSS send / subscribe; GSOC send / subscribe.
  • Tags, pins, stewardship, grantees, envelopes.
  • The /stamps endpoints behave as no-ops in dev mode but do not 404.

§Endpoints that return 404

  • Chequebook lifecycle: chequebook_balance, deposit_tokens, withdraw_tokens, last_cheques, get_last_cheques_for_peer, get_last_cashout_action, cashout_last_cheque.
  • Settlements: settlements, peer_settlement.
  • Stake: get_stake, stake, deposit_stake, withdraw_surplus_stake, migrate_stake, get_withdrawable_stake.
  • Pending transactions: list, get, rebroadcast, cancel.
  • Chain-state reads: chain_state, reserve_state, redistribution_state, rc_hash.
  • Per-peer accounting and balances.
  • High-level helpers that internally call any of the above — crate::storage::buy_storage, extend_storage_*, get_storage_cost.

Structs§

DevClient
Thin newtype around Client for use against Bee in dev mode. Cheap to clone.