Sign inSign up

a1fred/electrum-daemon

By a1fred

•Updated almost 7 years ago

Image
0

1.4K

a1fred/electrum-daemon repository overview

⁠Forked from osminogin/docker-electrum-daemon and added autoload wallet from seed

⁠docker-electrum-daemon

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

Electrum client⁠ is light bitcoin wallet software operates through supernodes (Electrum server instances actually).

Don't confuse with Electrum server⁠ that use bitcoind and full blockchain data.

Star this project on Docker Hub :star2: https://hub.docker.com/r/a1fred/electrum-daemon/⁠

⁠Ports
  • 7000 - JSON-RPC port.
⁠Volumes
  • /data - usually on host it has a path /home/user/.electrum.

⁠Getting started

⁠docker

Running with Docker:

docker run --rm --name electrum-daemon \
    --publish 127.0.0.1:7000:7000 \
    --volume /srv/electrum:/data \
    a1fred/electrum-daemon
docker exec -it electrum-daemon electrum create
docker exec -it electrum-daemon electrum daemon load_wallet
docker exec -it electrum-daemon electrum daemon status
{
    "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
    }
}
⁠docker-compose

Take a look at docker-compose.yml to see how this is setup. When running in production, you can use this as a guide.

docker-compose up
curl --data-binary '{"id":"1","method":"listaddresses"}' http://electrum:electrumz@localhost:7000

:exclamation:Warning:exclamation:

Always link electrum daemon to containers or bind to localhost directly and not expose 7000 port for security reasons.

⁠API

⁠License

MIT

Tag summary

Content type

Image

Digest

Size

56.1 MB

Last updated

almost 7 years ago

docker pull a1fred/electrum-daemon