Skip to main content

ElectrumSV RegTest node

Project description

PyPI version Build Status Platforms Node Version

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, 3.8, 3.9 or 3.10.
  • 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:

import logging
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",
)
logger = logging.getLogger("testing")

electrumsv_node.start()

# (Optional keyword arguments)
# electrumsv_node.start(
#     data_path=</your/custom/datadir/path>,
#     rpcuser="rpcuser",
#     rpcpassword="rpcpassword",
#     rpcport=18332,
#     p2p_port=18444,
#     zmq_port=28332,
#     network='regtest',
#     print_to_console=True,  # feeds logging to stdout
#     extra_params=['-somearg1=var1', '-somearg2=var2']
# )

result = electrumsv_node.call_any('getinfo')
logger.debug(result.json())
electrumsv_node.stop()
electrumsv_node.reset()

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

2021-01-03 11-50-29 INFO starting bitcoin node
2021-01-03 11-50-29 DEBUG polling bitcoin node...
2021-01-03 11-50-31 DEBUG polling bitcoin node...
2021-01-03 11-50-32 INFO bitcoin node online
2021-01-03 11-50-32 DEBUG {'result': {'version': 101000600, 'protocolversion': 70015, 'walletversion': 160300, 'balance': 0.0, 'blocks': 0, 'timeoffset': 0, 'connections': 0, 'proxy': '', 'difficulty': 4.656542373906925e-10, 'testnet': False, 'stn': False, 'keypoololdest': 1609627830, 'keypoolsize': 2000, 'paytxfee': 0.0, 'relayfee': 2.5e-06, 'errors': 'This is a pre-release or beta test build - use at your own risk - do not use for mining or merchant applications', 'maxblocksize': 10000000000, 'maxminedblocksize': 128000000, 'maxstackmemoryusagepolicy': 100000000, 'maxstackmemoryusageconsensus': 9223372036854775807}, 'error': None, 'id': 0}
2021-01-03 11-50-32 DEBUG stopping bitcoin node
2021-01-03 11-50-32 INFO bitcoin daemon stopped.
2021-01-03 11-50-32 DEBUG resetting state of RegTest bitcoin daemon...
2021-01-03 11-50-32 ERROR the bitcoin daemon must be shutdown to reset - retrying in 3 seconds
2021-01-03 11-50-35 DEBUG removed 'C:\Users\donha\AppData\Local\ElectrumSV-Node' 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.27-cp310-cp310-win_amd64.whl (10.4 MB view details)

Uploaded CPython 3.10 Windows x86-64

electrumsv_node-0.0.27-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (10.4 MB view details)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

electrumsv_node-0.0.27-cp310-cp310-macosx_10_9_x86_64.whl (8.1 MB view details)

Uploaded CPython 3.10 macOS 10.9+ x86-64

electrumsv_node-0.0.27-cp39-cp39-win_amd64.whl (10.4 MB view details)

Uploaded CPython 3.9 Windows x86-64

electrumsv_node-0.0.27-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (10.4 MB view details)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

electrumsv_node-0.0.27-cp39-cp39-macosx_10_9_x86_64.whl (8.1 MB view details)

Uploaded CPython 3.9 macOS 10.9+ x86-64

electrumsv_node-0.0.27-cp38-cp38-win_amd64.whl (10.4 MB view details)

Uploaded CPython 3.8 Windows x86-64

electrumsv_node-0.0.27-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (10.4 MB view details)

Uploaded CPython 3.8 manylinux: glibc 2.17+ x86-64

electrumsv_node-0.0.27-cp38-cp38-macosx_10_9_x86_64.whl (8.1 MB view details)

Uploaded CPython 3.8 macOS 10.9+ x86-64

electrumsv_node-0.0.27-cp37-cp37m-win_amd64.whl (10.4 MB view details)

Uploaded CPython 3.7m Windows x86-64

electrumsv_node-0.0.27-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (10.4 MB view details)

Uploaded CPython 3.7m manylinux: glibc 2.17+ x86-64

electrumsv_node-0.0.27-cp37-cp37m-macosx_10_9_x86_64.whl (8.1 MB view details)

Uploaded CPython 3.7m macOS 10.9+ x86-64

File details

Details for the file electrumsv_node-0.0.27-cp310-cp310-win_amd64.whl.

File metadata

  • Download URL: electrumsv_node-0.0.27-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 10.4 MB
  • Tags: CPython 3.10, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.28.0 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2

File hashes

Hashes for electrumsv_node-0.0.27-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 b013a149a83d343ecfbf3c229459f94f7670f70fc1cb600a5910f21fbbe9d1d7
MD5 ec4721b29ce1f55c7ac89c56a4aa64ad
BLAKE2b-256 023254bd5746878fcbe2cc84caca121866c16e37dc99624a68313e7f2424ca9e

See more details on using hashes here.

File details

Details for the file electrumsv_node-0.0.27-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

  • Download URL: electrumsv_node-0.0.27-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
  • Upload date:
  • Size: 10.4 MB
  • Tags: CPython 3.10, manylinux: glibc 2.17+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.28.0 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2

File hashes

Hashes for electrumsv_node-0.0.27-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 a9aff6348db0c596234798e229cf1cf2fe87424c9610907dbd46aa3d49b1045e
MD5 19011e0a3ebd01e18b85a2c078bab78a
BLAKE2b-256 f0a37b9e9e1324f5baaa7f419e339f58ba2503a7927d7ac9cc32d2d331e5fc97

See more details on using hashes here.

File details

Details for the file electrumsv_node-0.0.27-cp310-cp310-macosx_10_9_x86_64.whl.

File metadata

  • Download URL: electrumsv_node-0.0.27-cp310-cp310-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 8.1 MB
  • Tags: CPython 3.10, macOS 10.9+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.28.0 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2

File hashes

Hashes for electrumsv_node-0.0.27-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 8a160371dfc16b845b1c305199a5541c67a940099920d822fe0a3bc4b6fbe227
MD5 947acac053a0b49f286ceda669936ae3
BLAKE2b-256 44fcea861a7baf8f1e68ac540024e7ab3992ae49865c532493042352d6f9dacb

See more details on using hashes here.

File details

Details for the file electrumsv_node-0.0.27-cp39-cp39-win_amd64.whl.

File metadata

  • Download URL: electrumsv_node-0.0.27-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 10.4 MB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.28.0 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2

File hashes

Hashes for electrumsv_node-0.0.27-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 82c94c2ebf780cb99d0f205e00e4f3361f1beba3950f89719048a62919a9de81
MD5 a4e50d104abd5c132c06d45e0d3567d3
BLAKE2b-256 013fe124bbbec8f0c8a5bf2bd6cf9c7448eea8f2ecf862a186e6baeed8d64c22

See more details on using hashes here.

File details

Details for the file electrumsv_node-0.0.27-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

  • Download URL: electrumsv_node-0.0.27-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
  • Upload date:
  • Size: 10.4 MB
  • Tags: CPython 3.9, manylinux: glibc 2.17+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.28.0 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2

File hashes

Hashes for electrumsv_node-0.0.27-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 31d3f06b010041eaa6c948be31f309e3474de3cf989fafecba861ee6580feb65
MD5 2c3b2d80d52f0861af7b4850c8a6409e
BLAKE2b-256 5c8721da305e96287b0e8c4653020e8dfdebe7131ec81079275c6533022de64b

See more details on using hashes here.

File details

Details for the file electrumsv_node-0.0.27-cp39-cp39-macosx_10_9_x86_64.whl.

File metadata

  • Download URL: electrumsv_node-0.0.27-cp39-cp39-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 8.1 MB
  • Tags: CPython 3.9, macOS 10.9+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.28.0 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2

File hashes

Hashes for electrumsv_node-0.0.27-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 e56f1914095dd3bef4948cb291c400d866f742c5448c8b3886c3bc7668d54cff
MD5 7d340b32610fb4d0f34208bcc1054ca7
BLAKE2b-256 61230bc905c4a26628ac834086123c2fcaed0efb227df893eb25cfe998e3a02a

See more details on using hashes here.

File details

Details for the file electrumsv_node-0.0.27-cp38-cp38-win_amd64.whl.

File metadata

  • Download URL: electrumsv_node-0.0.27-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 10.4 MB
  • Tags: CPython 3.8, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.28.0 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2

File hashes

Hashes for electrumsv_node-0.0.27-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 55c043d23079f4f53aa9029f3986fe9e4f6147e073c9a932f51b9bcd6adce4f7
MD5 7ea3d229f7c08417a6f1768a03474253
BLAKE2b-256 c299f536fb1d5b1f48ad4a33adcfc0aecf45fdf5c398bc0901252dd3a7143e6b

See more details on using hashes here.

File details

Details for the file electrumsv_node-0.0.27-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

  • Download URL: electrumsv_node-0.0.27-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
  • Upload date:
  • Size: 10.4 MB
  • Tags: CPython 3.8, manylinux: glibc 2.17+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.28.0 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2

File hashes

Hashes for electrumsv_node-0.0.27-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 cbdde227ef3f183935595f471e5b5e10f01c8c6b8c5ad0bb7c686276ecd55fe4
MD5 237827a1c23c09fb1154441a721cf826
BLAKE2b-256 7696e7d3f2ac606c76680e3ad4ee544593da9d9ccb497105d1f5c7e6bac21021

See more details on using hashes here.

File details

Details for the file electrumsv_node-0.0.27-cp38-cp38-macosx_10_9_x86_64.whl.

File metadata

  • Download URL: electrumsv_node-0.0.27-cp38-cp38-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 8.1 MB
  • Tags: CPython 3.8, macOS 10.9+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.28.0 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2

File hashes

Hashes for electrumsv_node-0.0.27-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 d1bfb14c2ffc1013a8765b136140448dfaa09d2f32907b45e83876860bd887ef
MD5 8ee64384fc054508022b3f0ab42dd60a
BLAKE2b-256 be95ab48a44265a4a48f4e4fd27a1fbe2fd04299d55e5a4b4acf703b8b40569d

See more details on using hashes here.

File details

Details for the file electrumsv_node-0.0.27-cp37-cp37m-win_amd64.whl.

File metadata

  • Download URL: electrumsv_node-0.0.27-cp37-cp37m-win_amd64.whl
  • Upload date:
  • Size: 10.4 MB
  • Tags: CPython 3.7m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.28.0 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2

File hashes

Hashes for electrumsv_node-0.0.27-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 8a1436c853a3e79d0fe829c021cf757308bb547645c59f9608f50fad15358844
MD5 de43d5d94a76bde329adf901db5ec0f9
BLAKE2b-256 2d2c9597761d4ec96c9791217febbbc19edf061d0e7bf67c3635fbe618a67d97

See more details on using hashes here.

File details

Details for the file electrumsv_node-0.0.27-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

  • Download URL: electrumsv_node-0.0.27-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
  • Upload date:
  • Size: 10.4 MB
  • Tags: CPython 3.7m, manylinux: glibc 2.17+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.28.0 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2

File hashes

Hashes for electrumsv_node-0.0.27-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 69b64524fdd95e35b4e5994deb8f598211cec77fb58f1b62cf756d1ea26b524d
MD5 4573501e816bae6aff2e15c7b6f0aa22
BLAKE2b-256 9e6ab809d574cda67b4dc9206a91f7224563e2775b392646899ea4f1853f62ef

See more details on using hashes here.

File details

Details for the file electrumsv_node-0.0.27-cp37-cp37m-macosx_10_9_x86_64.whl.

File metadata

  • Download URL: electrumsv_node-0.0.27-cp37-cp37m-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 8.1 MB
  • Tags: CPython 3.7m, macOS 10.9+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.28.0 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2

File hashes

Hashes for electrumsv_node-0.0.27-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 1000cf26fb5c8f92fd8bae8c9ebff4440aff3f8af8fe08fcb1881fd9c65b8eb6
MD5 cbf2ebb0df92c5219fd323dad2eeb181
BLAKE2b-256 a399495c2cc01c5dee62d22e2fcdcd3d6fd15106fa1ba910e3eba5c8639cb99d

See more details on using hashes here.

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