bitcore-node-zcash/docs/scaffold.md

1.2 KiB

Scaffold

A collection of functions for creating, managing, starting, stopping and interacting with a Bitcore Node.

Create

This function will create a new directory and the initial configuration files/directories, including 'bitcore-node.json', 'package.json', 'bitcoin.conf', install the necessary Node.js modules, and create a data directory.

Add

This function will add a service to a node by installing the necessary dependencies and modifying the bitcore-node.json configuration.

Start

This function will load a configuration file bitcore-node.json and instantiate and start a node based on the configuration.

Find Config

This function will recursively find a configuration bitcore-node.json file in parent directories and return the result.

Default Config

This function will return a default configuration with the default services based on environment variables, and will default to using the standard ~/.bitcoin data directory.

Remove

This function will remove a service from a node by uninstalling the necessary dependencies and modifying the bitcore-node.json configuration.

Call Method

This function will call an API method on a node via the JSON-RPC interface.