Skip to main content

ElectrumSV RegTest node

Project description

PyPI version Build Status

ElectrumSV-Node

The project is intended to provide Python packages for Linux, MacOS and Windows that include and help run pre-built Bitcoin SV executables. It should allow the consistently usable and available ability to run a Bitcoin SV node on any 64-bit platform with the installation of the electrumsv-node package using the standard pip package manager for Python.

These packages and the executables within them, are only intended for running nodes for development as Regtest blockchains. If we had the ability to do so, we would prevent them from running as any other blockchain. Do not bother us with your questions or problems related to non-Regtest usage.

  • You must be using 64-bit Python 3.7 or 3.8.
  • You must be using Windows, MacOS or Linux.
  • You must have the latest version of the pip package.

To update pip:

> python3 -m pip install --upgrade pip

To install electrumsv-node:

> pip3 install electrumsv-node

To use it:

from electrumsv_node import electrumsv_node

# Set logging level to debug mode to see logging information (Optional)
logging.basicConfig(
    format="%(asctime)s %(levelname)s %(message)s",
    level=logging.DEBUG,
    datefmt="%Y-%m-%d %H-%M-%S",
)

electrumsv_node.start()
time.sleep(5)
electrumsv_node.stop()
time.sleep(5)
electrumsv_node.reset()

Console output will look something like this (with custom data directory):

2020-07-03 19-35-57 DEBUG starting RegTest bitcoin daemon...
2020-07-03 19-36-02 DEBUG stopping RegTest bitcoin daemon...
2020-07-03 19-36-02 DEBUG bitcoin daemon stopped.
2020-07-03 19-36-07 DEBUG resetting state of RegTest bitcoin daemon...
2020-07-03 19-36-09 DEBUG removed 'G:\electrumsv-node\electrumsv_node\data' successfully
2020-07-03 19-36-09 DEBUG created 'G:\electrumsv-node\electrumsv_node\data' successfully

The node data directory

By default, the node will be started with a data directory in a standard location. On Windows this will be within ElectrumSV-Node in the computer's LOCALAPPDATA directory, which will likely be c:\users\<user-name>\AppData\Local. On MacOS and Linux this will be within .electrumsv-node in the user's home directory, which will likely be something like /home/<user-name> on Linux or /Users/<user-name> on MacOS.

ElectrumSV and ElectrumSV-Node

This is part of a wider effort to provide a first class RegTest development environment experience with the ElectrumSV stack (which includes ElectrumX). It is expected that for these purposes, the ElectrumSV-SDK project will be the way that developers will make use of ElectrumSV-Node.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

electrumsv_node-0.0.18-cp39-cp39-win_amd64.whl (8.5 MB view hashes)

Uploaded CPython 3.9 Windows x86-64

electrumsv_node-0.0.18-cp39-cp39-win32.whl (8.5 MB view hashes)

Uploaded CPython 3.9 Windows x86

electrumsv_node-0.0.18-cp39-cp39-macosx_10_9_x86_64.whl (7.4 MB view hashes)

Uploaded CPython 3.9 macOS 10.9+ x86-64

electrumsv_node-0.0.18-cp38-cp38-win_amd64.whl (8.5 MB view hashes)

Uploaded CPython 3.8 Windows x86-64

electrumsv_node-0.0.18-cp38-cp38-win32.whl (8.5 MB view hashes)

Uploaded CPython 3.8 Windows x86

electrumsv_node-0.0.18-cp38-cp38-macosx_10_9_x86_64.whl (7.4 MB view hashes)

Uploaded CPython 3.8 macOS 10.9+ x86-64

electrumsv_node-0.0.18-cp37-cp37m-win_amd64.whl (8.5 MB view hashes)

Uploaded CPython 3.7m Windows x86-64

electrumsv_node-0.0.18-cp37-cp37m-win32.whl (8.5 MB view hashes)

Uploaded CPython 3.7m Windows x86

electrumsv_node-0.0.18-cp37-cp37m-macosx_10_9_x86_64.whl (7.4 MB view hashes)

Uploaded CPython 3.7m macOS 10.9+ x86-64

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page