# @windingtree/off-chain-accessor-swarm

> Swarm-based storage that can be used as an off-chain data accessor in @windingtree/wt-js-libs

Latest version **1.0.0** (published 2018-06-07) · Apache-2.0 license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install @windingtree/off-chain-accessor-swarm
pnpm add @windingtree/off-chain-accessor-swarm
yarn add @windingtree/off-chain-accessor-swarm
bun add @windingtree/off-chain-accessor-swarm
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2018-06-07 |
| First published | 2018-06-07 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=10.3.0 |
| Dependencies | 1 |
| Unpacked size | 1.5 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Winding Tree Developers |
| Maintainers | augustol, jirkachadima |
| Keywords | winding-tree |

## Links

- npm: https://www.npmjs.com/package/@windingtree/off-chain-accessor-swarm
- Repository: https://github.com/windingtree/off-chain-accessor-swarm
- Homepage: https://github.com/windingtree/off-chain-accessor-swarm#readme
- Issues: https://github.com/windingtree/off-chain-accessor-swarm/issues
- npm.io page: https://npm.io/package/@windingtree/off-chain-accessor-swarm

## Dependencies (1)

- [web3-bzz](https://npm.io/package/web3-bzz.md) ^1.0.0-beta.34

## Recent versions

- 1.0.0 (latest) — 2018-06-07

## README

# Winding Tree Off Chain Data Accessor - Ethereum Swarm.

Swarm-based storage that can be used in Winding Tree [wt-js-libs](https://github.com/windingtree/wt-js-libs).

## Installation

```sh
npm install @windingtree/off-chain-accessor-swarm
# or
git clone https://github.com/windingtree/off-chain-accessor-swarm
nvm install
npm install
```

## Usage

```javascript
import WTLibs from '@windingtree/wt-js-libs';
import SwarmAccessor from '@windingtree/off-chain-accessor-swarm';

const libs = WTLibs.createInstance({
  dataModelOptions: {
    provider: 'http://localhost:8545',
  },
  offChainDataOptions: {
    accessors: {
      'bzz-raw': {
        options: {
          swarmProviderUrl: 'http://localhost:8500',
        }
        create: (options) => {
          return new SwarmAccessor(options);
        },
      },
    },
  },
});
```

---
_Source: https://npm.io/package/@windingtree/off-chain-accessor-swarm · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
