bitwasp/bitcoind-server

A helper library for spawning bitcoind regtest nodes for unit tests

v0.0.6 2018-05-14 12:42 UTC

README

Build Status Scrutinizer Code Quality Code Coverage

This library can be used to creating bitcoin node data directories with a certain configuration, or to boot a bitcoind instance against a certain directory.

The NodeService provides a simple API for this function.

The UnitTestNodeService provides an API for creating once off regtest nodes, whose data directories will be cleaned up when the service instance is destructed.

The Server class can also be used as a factory for producing an nbobtc/bitcoind RPC client configured to use the running instance.