bitcoind
Spawn a Bitcoin Core node
Last updated 8 months ago by mappum .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install bitcoind 
SYNC missed versions from official npm registry.

bitcoind

Run a Bitcoin Core full node from Node.js.

On install, this package downloads a prebuilt binary from the official Bitcoin Core releases, and checks it against a known SHA256 hash.

Usage

npm install bitcoind

let bitcoind = require('bitcoind')

// start the full node
let node = bitcoind({
  // options are turned into CLI args
  testnet: true,
  rpcport: 12345
})

// returns handle to child process
node.stdout.pipe(process.stdout)

// comes with initialized rpc client
node.rpc.getNetworkInfo().then(console.log)

bitcoind(opts)

Spawns a Bitcoin Core full node.

Returns a ChildProcess object representing the bitcoind process. It has an rpc property which is a client for the node's RPC server (from the bitcoin-core package).

opts may be an object containing options passed to bitcoind as CLI arguments (you may use any flag supported by bitcoind). To see all supported options, run npx bitcoind --help.

CLI

Installing the package also exposes a bitcoind command, so you can use this as an easy way to install bitcoin:

$ npm i -g bitcoind
$ bitcoind -version

Current Tags

  • 1.2.1                                ...           latest (8 months ago)

5 Versions

  • 1.2.1                                ...           8 months ago
  • 1.2.0                                ...           8 months ago
  • 1.1.1                                ...           8 months ago
  • 1.1.0                                ...           8 months ago
  • 1.0.0                                ...           8 months ago
Maintainers (1)
Downloads
Today 0
This Week 2
This Month 4
Last Day 0
Last Week 1
Last Month 6
Dependencies (8)
Dev Dependencies (1)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |