ara-reward-dcdn

0.19.2 • Public • Published

ara-reward-dcdn

Build Status

An Ara Network node that runs a rewardable decentralized content distribution node.

Status

Important reminder: All Ara development is still in flux.

Dependencies

Installation

$ npm install --save ara-reward-dcdn

Usage

Start

$ ard start -i <userDID>

Download

$ ard download -d <contentDID> -i <userDID>

Seed

$ ard seed -d <contentDID> -i <userDID>

CLI

See CLI docs

API

See API docs

index.js is an ANN-compliant interface and does not give direct access to the DCDN class. For access to the DCDN class, use require('ara-reward-dcdn/dcdn').

Example download:

const DCDN = require('ara-reward-dcdn/dcdn')

const dcdn = new DCDN({
  password: 'password',
  userId: '0a98c8305035dcbb1e8fa0826965200269e232e45ac572d26a45db9581986e67'
})

dcdn.join({
  did: '1b23c8305035dcbb1e8fa0826965200269e232e45ac572d26a45db95819abcd1',
  download: true,
  upload: false,
  metaOnly: false,
  price: 1,
  maxPeers: 10,
  jobId: 'ac23c8305035dcbb1e8fa0826965200269e232e45ac572d26a45db95819aef24'
})

Configuration

ara-runtime-configuration is a dependency of ara-network and will read from the nearest .ararc. Install ara-runtime-configuration separately to specify default values not present in an .ararc.

Contributing

See Also

License

LGPL-3.0

Readme

Keywords

Package Sidebar

Install

npm i ara-reward-dcdn

Weekly Downloads

2

Version

0.19.2

License

LGPL-3.0

Unpacked Size

140 kB

Total Files

40

Last publish

Collaborators

  • mahjiang