/docker-electrum-nmc

An Electrum-NMC container using catatonit and signalproxy.sh

Primary LanguageShellMIT LicenseMIT

docker-electrum-nmc

Electrum-NMC client running as a daemon in a docker container with JSON-RPC enabled.

Electrum-NMC is light bitcoin wallet software operates through public Electrum-NMC server instances.

Ports

  • 8334 - JSON-RPC port.

Volumes

  • The internal paths /data/electrum-nmc and /home/namecoin/.electrum-nmc are linked within the container. Mount your data directory to either one.

Getting started

Running with docker-compose

version: '3'
services:
  electrum:
    image: electrum-nmc
    container_name: electrum-nmc
    ports:
      - 127.0.0.1:8334:8334
    environment:
      - ELECTRUM_USER=electrum
      - ELECTRUM_PASSWORD=electrumz
      - TESTNET="False"
    volumes:
      - ./data:/data

Commands

curl --data-binary '{"id":"1","method":"listaddresses"}' http://electrum:electrumz@localhost:8334
docker exec electrum-nmc nmc create
docker exec electrum-nmc nmc load_wallet
docker exec -it electrum-nmc nmc getinfo
{
    "auto_connect": true,
    "blockchain_height": 505136,
    "connected": true,
    "fee_per_kb": 427171,
    "path": "/home/electrum/.electrum",
    "server": "us01.hamster.science",
    "server_height": 505136,
    "spv_nodes": 10,
    "version": "3.0.6",
    "wallets": {
        "/home/electrum/.electrum/wallets/default_wallet": true
    }
}

Warning

As built, the electrum-nmc daemon listens on 0.0.0.0 You should limit access to port 8334 for security reasons.

API

License

See LICENSE