Giter Site home page Giter Site logo

docker-ncdns's Introduction

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

  • 7000 - JSON-RPC port.

Volumes

  • The internal paths /data and /home/user/.electrum 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:7000:7000
    environment:
      - ELECTRUM_USER=electrum
      - ELECTRUM_PASSWORD=electrumz
      - TESTNET="False"
    volumes:
      - ./data:/data

Commands

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.

API

License

See LICENSE

docker-ncdns's People

Contributors

sevenrats avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.