8 min read - Posted 13 May 19

Swarm: Distributed Storage Platform and Content Distribution Service

Swarm is a distributed storage platform and content distribution service, a native base layer service of the ethereum web3 stack

This article originally appears in the Swarm repository ## Introduction

This guide walks you through understanding, installing, and using Swarm. It also explains how to contribute or ask for help. Swarm is in active development and it is untested in the wild, so use it at your own risk. To interact with Swarm, you will need to use the command line. If you are not comfortable using it, it might be worth to familiarise yourself here first.

What is Swarm?

article image

Swarm is a distributed storage platform and content distribution service, a native base layer service of the ethereum web3 stack. The primary objective of Swarm is to provide a sufficiently decentralized and redundant store of Ethereum's public record, in particular to store and distribute dapp code and data as well as blockchain data. From an economic point of view, it allows participants to efficiently pool their storage and bandwidth resources in order to provide these services to all participants of the network, all while being incentivised by Ethereum.


Swarm's broader objective is to provide infrastructure services for developers of decentralised web applications (dapps), notably: messaging, data streaming, peer to peer accounting, mutable resource updates, storage insurance, proof of custody scan and repair, payment channels and database services.

From the end user's perspective, Swarm is not that different from the world wide web, with the exception that uploads are not hosted on a specific server. Swarm offers a peer-to-peer storage and serving solution that is DDoS-resistant, has zero-downtime, fault-tolerant and censorship-resistant as well as self-sustaining due to a built-in incentive system which uses peer-to-peer accounting and allows trading resources for payment. Swarm is designed to deeply integrate with the devp2p multiprotocol network layer of Ethereum as well as with the Ethereum blockchain for domain name resolution (using ENS), service payments and content availability insurance.

Please refer to our development roadmap to stay informed with our progress.


Swarm is set out to provide base layer infrastructure for a new decentralised internet. Swarm is a peer-to-peer network of nodes providing distributed digital services by contributing resources (storage, message forwarding, payment processing) to each other. These contributions are accurately accounted for on a peer to peer basis, allowing nodes to trade resource for resource, but offering monetary compensation to nodes consuming less than they serve. article image

The Ethereum Foundation operates a Swarm testnet that can be used to test out functionality in a similar manner to the Ethereum testnet (ropsten). Everyone can join the network by running the Swarm client node on their server, desktop, laptop or mobile device. See Getting Started for how to do this. The Swarm client is part of the Ethereum stack, the reference implementation is written in golang and found under the go-ethereum repository. Currently at POC (proof of concept) version 0.3 is running on all nodes.

Uploaded content is not guaranteed to persist on the testnet until storage insurance is implemented (see Roadmap for more details). All participating nodes should consider participation a voluntary service with no formal obligation whatsoever and should be expected to delete content at their will. Therefore, users should under no circumstances regard Swarm as safe storage until the incentive system is functional.

Swarm offers a local HTTP proxy API that dapps or command line tools can use to interact with Swarm. Some modules like messaging are only available through RPC-JSON API. The foundation servers on the testnet are offering public gateways, which serve to easily demonstrate functionality and allow free access so that people can try Swarm without even running their own node.

Swarm is a collection of nodes of the devp2p network each of which run the BZZ URL schemes on the same network id.

Swarm nodes can also connect with one (or several) Ethereum blockchains for domain name resolution and one ethereum blockchain for bandwidth and storage compensation. Nodes running the same network id are supposed to connect to the same blockchain for payments. A Swarm network is identified by its network id which is an arbitrary integer.

Swarm allows for :dfn:upload and disappear which means that any node can just upload content to the Swarm and then is allowed to go offline. As long as nodes do not drop out or become unavailable, the content will still be accessible due to the 'synchronization' procedure in which nodes continuously pass along available data between each other.

Swarm supports encryption. Upload of unencrypted sensitive and private data is highly discouraged as there is no way to undo an upload. Users should refrain from uploading illegal, controversial or unethical content.

Always use encryption for sensitive content. For encrypted content, uploaded data is 'protected', i.e. only those that know the reference to the root chunk (the Swarm hash of the file) as well as the decryption key can access the content. Since publishing this reference (on ENS or with Feeds) requires an extra step, users are mildly protected against careless publishing as long as they use encryption. Even though there is no guarantees for removal, unaccessed content that is not explicitly insured will eventually disappear from the Swarm, as nodes will be incentivised to garbage collect it in case of storage capacity limits.

Swarm is a Persistent Data Structure, therefore there is no notion of delete/remove action in Swarm. This is because content is disseminated to Swarm nodes who are incentivised to serve it.

Important: It is not possible to delete or remove content uploaded to Swarm. Always encrypt sensitive content using the integrated Swarm encryption.

Available APIs

Swarm offers several APIs: * CLI * JSON-RPC - using web3 bindings over Geth's IPC * HTTP interface - every Swarm node exposes a local HTTP proxy that implements the :ref:BZZ URL schemes * Javascript - available through the erebos, swarm-js or swarmgw packages


Source code is located at https://github.com/ethereum/go-ethereum/.


Roadmap is located at https://github.com/ethersphere/Swarm/wiki/roadmap

Important: Swarm is experimental code and untested in the wild. Use with extreme care. We encourage developers to connect to the testnet with their permanent nodes and give us feedback.

Public gateways

Swarm offers a local HTTP proxy API that Dapps can use to interact with Swarm. The Ethereum Foundation is hosting a public gateway, which allows free access so that people can try Swarm without running their own node.

The Swarm public gateway can be found at https://swarm-gateways.net and is always running the latest stable Swarm release.

Important: Swarm public gateways are temporary and users should not rely on their existence for production services.

Example Dapps

Reporting a bug and contributing

Issues are tracked on github and github only. Swarm related issues and PRs have labels prefixed with swarm:

Please include the commit and branch when reporting an issue.

Pull requests should by default commit on the master branch.

Prospective contributors please read the Developers' Guide


Swarm is funded by the Ethereum Foundation and industry sponsors.

The Core team

  • Viktor Trón - @zelig
  • Daniel A. Nagy - @nagydani
  • Aron Fischer - @homotopycolimit
  • Louis Holbrook - @nolash
  • Lewis Marshal - @lmars
  • Fabio Barone - @holisticode
  • Anton Evangelatov - @nonsense
  • Janoš Guljaš - @janos
  • Balint Gabor - @gbalint
  • Elad Nachmias - @justelad

were on the core team:

  • Zahoor Mohamed - @jmozah
  • Zsolt Felföldi - @zsfelfoldi
  • Nick Johnson - @Arachnid

Sponsors and collaborators

Special thanks

  • Felix Lange, Alex Leverington for inventing and implementing devp2p/rlpx
  • Jeffrey Wilcke, Peter Szilagyi and the entire ethereum foundation go team for continued support, testing and direction
  • Gavin Wood and Vitalik Buterin for the holy trinity vision of web3
  • Nick Johnson for ENS and ENS Swarm integration
  • Alex Van der Sande, Fabian Vogelsteller, Bas van Kervel, Victor Maia, Everton Fraga and the Mist team
  • Elad Verbin for his continued technical involvement as an advisor and ideator
  • Nick Savers for his unrelenting support and meticulous reviews of our papers
  • Gregor Zavcer, Alexei Akhunov, Alex Beregszaszi, Daniel Varga, Julien Boutloup for inspiring discussions and ideas
  • Juan Benet and the IPFS team for continued inspiration
  • Carl Youngblood, Shane Howley, Paul Le Cam, Doug Leonard and the mainframe team for their contribution to PSS and Feeds
  • Sourabh Niyogi and the entire Wolk team for the inspiring collaboration on databases
  • Ralph Pilcher for implementing the swap swear and swindle contract suite in solidity/truffle and Oren Sokolowsky for the initial version
  • Javier Peletier from Epiclabs (ethergit) for his contribution to Feeds
  • Jarrad Hope and Carl Bennet (Status) for their support
  • Participants of the orange lounge research group and the Swarm orange summits
  • Roman Mandeleil and Anton Nashatyrev for an early java implementation of swarm
  • Igor Sharudin, Dean Vaessen for example dapps
  • Community contributors for feedback and testing
  • Daniel Kalman, Benjamin Kampmann, Daniel Lengyel, Anand Jaisingh for contributing to the swarm websites
  • Felipe Santana, Paolo Perez and Paratii team for filming at the 2017 swarm summit and making the summit website
Created with Sketch.Content is"CC-BY-SA 4.0" licensed
Article On-chain
Article Author

Kauri Team




Related Articles
Sia: Decentralized Cloud Storage

Sia is a decentralized cloud storage platform and data storage marketplace. Sia encrypts and distributes your files across its network, keeping your data private. This article originally appeared in the Sia docs This guide will walk you through uploading a file to Sia using the API. Complete API reference documentation can be found here . Examples are given in Curl and Sia.js If you have questions, reach out to us on the #app-dev channel on Discord . Setup and Configuration If you haven’t alread

Kauri Team

14 May 19

Bluzelle - A decentralized data cache

Bluzelle is a decentralized data cache with servers available in data centers across multiple regions, and auto-replication. Quick Start 1. Create an NPM Project With NodeJS and NPM installed creating a project is a straight forward process:$ mkdir my-bluzelle-project $ cd my-bluzelle-project $ npm init 2. Install the bluzelle NPM package Run npm install bluzelle to get the latest and greatest Bluzelle sdk \\(see installation for more details\\). 3. Run a simple program Create a file, my-program

Kauri Team

06 Jun 19