Terminal-based utilities for Bitcoin and forkcoin full nodes
  • Python 96%
  • Shell 3.3%
  • Nix 0.7%
Find a file
The MMGen Project 6c370dec4b
new command: mmnode-addrbal
Get balances for arbitrary addresses in the blockchain

Testing:

    $ test/test.py -e regtest

Example:

    # Top 10 Bitcoin addresses by balance (see https://blockchair.com/bitcoin/addresses)
    $ top10='
        34xp4vRoCGJym3xR7yCVPFHoCNxv4Twseo
        bc1qgdjqv0av3q56jvd82tkdjpy7gdp9ut8tlqmgrpmv24sq90ecnvqqjwvw97
        1LQoWist8KkaUXSPKZHNvEyfrEkPHzSsCd
        3LYJfcfHPXYJreMsASk2jkn69LWEYKzexb
        3M219KR5vEneNb47ewrPfWyb5jQ2DjxRP6
        bc1qazcm763858nkj2dj986etajv6wquslv8uxwczt
        37XuVSEpWW4trkfmvWzegTHQt7BdktSKUs
        1FeexV6bAHb8ybZjqQMjJrcCrHGW9sb6uF
        bc1qa5wkgaew2dkv56kfvj49j0av5nml45x9ek9hz6
        3Kzh9qAqVWQhEsfQz7zEQL1EuSx5tyNLNS'

    # Compact summary:
    $ mmnode-addrbal --tabular $top10

    # Full output:
    $ mmnode-addrbal $top10
2022-07-27 16:16:42 +00:00
cmds new command: mmnode-addrbal 2022-07-27 16:16:42 +00:00
mmgen_node_tools new command: mmnode-addrbal 2022-07-27 16:16:42 +00:00
test new command: mmnode-addrbal 2022-07-27 16:16:42 +00:00
LICENSE Initial commit 2017-01-06 09:23:52 +00:00
MANIFEST.in migrate to setuptools 2021-10-13 19:52:38 +00:00
pyproject.toml migrate to setuptools 2021-10-13 19:52:38 +00:00
README.md support testing via MMGen test suite framework 2022-07-27 16:16:41 +00:00
setup.cfg new command: mmnode-addrbal 2022-07-27 16:16:42 +00:00

MMGen Node Tools

Helper utilities for Bitcoin and forkcoin full nodes.

Requires modules from the MMGen online/offline cryptocurrency wallet.

Currently tested on Linux only. Some scripts may not work under Windows/MSYS2.

Install:

First, install MMGen.

Then,

$ git clone https://github.com/mmgen/mmgen-node-tools
$ cd mmgen-node-tools
$ python3 -m build --no-isolation
$ python3 -m pip install --user dist/*.whl

Also make sure that ~/.local/bin is in PATH.

Test:

NOTE: the tests require that the MMGen and MMGen Node Tools repositories be located in the same directory.

$ test/init.sh
$ test/test-release.sh -A  # BTC-only testing
$ test/test-release.sh     # Full testing

Forum | PGP Public Key | Donate: 15TLdmi5NYLdqmtCqczUs5pBPkJDXRs83w