Skip to content

dWeb Bootstrap Node

Jared Rice Sr edited this page Jul 1, 2018 · 1 revision

@dwdht/bootstrap

Easily spin up a @dwdht/rpc bootstrap node via the command line.

npm install @dwdht/bootstrap

Usage

A dWeb Bootstrap Node is just a normal DHT node, except it doesn't answer any custom queries and will just forward you to other nodes in the network.

dbootstrap --port=10000

After spinning up a node add it to your @dwdht/rpc bootstrap list

var node = dWebDHT({
  bootstrap: ['mydomain.com:10000']
})

var stream = node.query({
  command: 'your-command',
  target: ...
})
Clone this wiki locally