Skip to content

bitcoind

Sources

Get Started | Builder's Guide


git clone https://github.com/lightningnetwork/lnd
cd lnd
docker build -f dev.Dockerfile -t lnd .
cd docker/bitcoind
docker build -t bitcoind .


version: '3'
services:
    bitcoind:
      image: bitcoind
      container_name: bitcoind
      ports:
        - "8332:8332"
        - "8333:8333"
        - "18332:18332"
        - "18333:18333"
        - "18443:18443"
        - "18444:18444"
        - "38333:38333"
        - "38332:38332"
      volumes:
        - ./bitcoind:/data
      environment:
        - RPCAUTH
        - NETWORK
        - BITCOIND_DEBUG
      entrypoint: ["./start-bitcoind.sh"]

    lnd:
      image: lnd
      container_name: lnd
      ports:
        - "9735:9735"
        - "10009:10009"
      environment:
        - RPCUSER
        - RPCPASS
        - NETWORK
        - CHAIN
        - LND_DEBUG
        - BACKEND=bitcoind
      volumes:
        - ./lnd:/root/.lnd
      entrypoint: ["./start-lnd.sh"]
      links:
        - "bitcoind:blockchain"

RPC Calls


curl --user user --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getblockchaininfo", "params": [] }' 
    -H 'content-type: text/plain;' http://127.0.0.1:8332/

Sources