# Swarm (Bee)

> [!NOTE]
>
> Esta página aún no está traducida. Estás leyendo la versión en inglés.

> **Category:** Storage | **Status:** Beta
>
> **Website:** [ethswarm.org](<https://www.ethswarm.org>)

## Description

Swarm is a decentralized storage and content distribution network running on Gnosis Chain. You run Ethereum Swarm's official **Bee** full node (`ethersphere/bee`) to store encrypted data chunks and participate in Swarm's storage redistribution game for **xBZZ** rewards.

> [!WARNING]
>
> **Non-refundable 10 xBZZ stake and Gnosis RPC required**
>
> Before a Bee full node can earn storage incentives, you must:
>
> 1. Supply a working **Gnosis Chain RPC endpoint** (`BEE_BLOCKCHAIN_RPC_ENDPOINT`).
> 2. Fund the node's Gnosis Chain address with at least **10 xBZZ** for the stake (this stake is **non-refundable**) plus a small amount of **xDAI** for transaction gas.
>
> In Swarm's [July 2026 State of the Network report](<https://www.ethswarm.org/blog/2026/swarm-state-of-the-network-july-2026/>), active staking nodes averaged **11.14 xBZZ per month** (under $1/month at observed prices). Check current xBZZ prices and your electricity/VPS costs before committing a non-refundable stake.

## Earning Estimates

| Metric | Value |
| --- | --- |
| Monthly range | $0 - $1 per node (July 2026 average: 11.14 xBZZ) |
| Payout token | xBZZ (Gnosis Chain) |
| Minimum payout | $0 (accrues to your node's address / chequebook) |
| Payout frequency | Probabilistic redistribution rounds |
| Payment methods | Crypto (Gnosis Chain) |

## Requirements

| Requirement | Value |
| --- | --- |
| Residential IP | No |
| VPS allowed | Yes |
| GPU required | No |
| Minimum storage | 64GB |
| Upfront stake | 10 xBZZ (non-refundable) + xDAI for gas on Gnosis Chain |
| External dependency | Gnosis Chain RPC endpoint (HTTPS or WSS) |
| Supported platforms | Docker (`linux/amd64`, `linux/arm64`, `linux/arm/v7`) |

## Setup Instructions

### 1\. No account needed

Swarm is permissionless. There is no signup, no account, and no referral programme.

### 2\. Prepare a Gnosis Chain RPC endpoint

Bee needs a Gnosis Chain RPC URL (for example from your own Gnosis node or a Gnosis RPC provider) to sync postage stamps, deploy its chequebook, and participate in redistribution rounds.

### 3\. Port forwarding

Forward **TCP and UDP port `1634`** to the machine running Bee so peers can reach your node.

Keep port `1633` off the public internet. Bee listens on all interfaces inside the container so Docker can forward the port. CashPilot publishes it on host loopback (`127.0.0.1`). Other containers on the same Docker network can still reach the API, which controls staking and chequebook withdrawals. Keep untrusted containers off that network.

### 4\. Deploy with CashPilot

In CashPilot, open **Catalog**, select **Storage**, and add **Swarm (Bee)**:

- **Gnosis Chain RPC endpoint (`BEE_BLOCKCHAIN_RPC_ENDPOINT`)**: your Gnosis Chain HTTPS or WSS RPC URL (stored encrypted as a secret).
- **Keystore password (`BEE_PASSWORD`)**: a strong passphrase used to encrypt the node's local Gnosis Chain keystore in `/home/bee/.bee`. Save a copy in your password manager.
- Leave `BEE_FULL_NODE`, `BEE_MAINNET`, `BEE_SWAP_ENABLE`, and `BEE_STORAGE_INCENTIVES_ENABLE` set to `true` for a staking full node.
- Optionally set **Public NAT address (`BEE_NAT_ADDR`)** to `YOUR_IP:1634` if your router does not support automatic NAT discovery.
- Set **Withdrawal wallet address (`BEE_WITHDRAWAL_ADDRESSES_WHITELIST`)** to your own Gnosis Chain wallet. Bee withdraws only to the addresses listed here; you can also add it later and redeploy.

Deploy the service. CashPilot pins the official multi-arch image `ethersphere/bee:2.8.3-slim` by SHA-256 digest and marks `/home/bee/.bee` as a critical volume.

### 5\. Fund the node and stake 10 xBZZ

Open an SSH tunnel to the node's loopback API:

```
ssh -L 1633:127.0.0.1:1633 you@your-server
```

1. Read the node's Gnosis Chain address:

```
curl -s http://127.0.0.1:1633/addresses
```

1. Send at least **10 xBZZ** and a small amount of **xDAI** (for gas) on Gnosis Chain to that `ethereum` address.
2. Wait for the node to sync, then stake 10 xBZZ (denominated in PLUR, where `1 xBZZ = 10^16 PLUR`):

```
curl -X POST http://127.0.0.1:1633/stake/100000000000000000
```

1. Check your stake and wallet balance:

```
curl -s http://127.0.0.1:1633/stake
curl -s http://127.0.0.1:1633/wallet
```

1. To withdraw, set **Withdrawal wallet address** to your own Gnosis Chain wallet and redeploy. Bee refuses a withdrawal to any address not on that list. Then withdraw xBZZ (amount in PLUR), or xDAI with `NativeToken` (amount in wei):

```
curl -X POST "http://127.0.0.1:1633/wallet/withdraw/BZZ?address=<your wallet>&amount=<PLUR>"
```

## Important Notes

- **Back up `/home/bee/.bee` and `BEE_PASSWORD`.** The container mints its own Gnosis Chain keystore on first start. Losing the keystore or password loses access to the node's wallet and staked xBZZ.
- **The 10 xBZZ stake is non-refundable.** Once deposited into the Swarm staking contract, it stays locked to keep the node eligible for redistribution rounds.

## Sources

- Official Docker documentation: [docs.ethswarm.org/docs/bee/installation/docker](<https://docs.ethswarm.org/docs/bee/installation/docker>)
- Bee source and releases: [github.com/ethersphere/bee](<https://github.com/ethersphere/bee>)
- Swarm State of the Network (July 2026): [ethswarm.org/blog/2026/swarm-state-of-the-network-july-2026](<https://www.ethswarm.org/blog/2026/swarm-state-of-the-network-july-2026/>)
