Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ara-reward-dcdn

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ara-reward-dcdn

An Ara Network node that runs a rewardable DCDN

  • 0.19.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

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

Keywords

FAQs

Package last updated on 17 Dec 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc