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.
7000
- JSON-RPC port.
- The internal paths
/data
and/home/user/.electrum
are linked within the container. Mount your data directory to either one.
version: '3'
services:
electrum:
image: electrum-nmc
container_name: electrum-nmc
ports:
- 127.0.0.1:7000:7000
environment:
- ELECTRUM_USER=electrum
- ELECTRUM_PASSWORD=electrumz
- TESTNET="False"
volumes:
- ./data:/data
curl --data-binary '{"id":"1","method":"listaddresses"}' http://electrum:electrumz@localhost:7000
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 7000 for security reasons.
See LICENSE