You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

34 lines
1.0 KiB

5 years ago
# API connecting the Umbrel Dashboard to bitcoind & lnd
### How to use:
1. To `/home/umbrel/docker-compose.yml`, add the following service:
```
middleware:
5 years ago
image: getumbrel/middleware:latest
5 years ago
depends_on: [ bitcoin, lnd ]
logging: *default-logging
restart: on-failure
network_mode: host
volumes:
- "/home/umbrel/lnd:/lnd"
environment:
BITCOIN_NETWORK: "mainnet"
BITCOIN_HOST: "0.0.0.0"
RPC_USER: "<your rpc username>"
RPC_PASSWORD: "<your rpc password>"
LND_NETWORK: "mainnet"
LND_HOST: "127.0.0.1"
```
2. Run `docker-compose up -d`
3. Test bitcoin from a computer connected to the same network
```
curl http://umbrel.local:3005/v1/bitcoind/info/status
```
4. Test lightning from a computer connected to the same network
```
curl http://umbrel.local:3005/v1/lnd/info/status
```