Sign inSign up

zetachain/bitcoin

By zetachain

Updated over 1 year ago

Image
0

10K+

zetachain/bitcoin repository overview

Using the ZetaChain BTC docker image is pretty straightforward. You simply run the image with a few basic environment variables and then wait until it syncs.

TestNet


Testnet Environment Variables and Docker Image Name

  • bitcoin_username=whateveryouwant
  • bitcoin_password=whateveryouwant
  • NETWORK_HEIGHT_URL=https://blockstream.info/testnet/api/blocks/tip/height
  • WALLET_NAME=whateveryou want
  • WALLET_ADDRESS=your tss BTC address
  • IMAGE=**zetachain/bitcoin:61-testnet**

Docker Compose Example:

version: '3'

services:
  bitcoin:
    image: zetachain/bitcoin:61-testnet
    environment:
      - BITCOIN_USERNAME=whateveryouwant
      - BITCOIN_PASSWORD=whateveryouwant
      - NETWORK_HEIGHT_URL=https://blockstream.info/testnet/api/blocks/tip/height
      - WALLET_NAME=whateveryouwant
      - WALLET_ADDRESS=yourtssBTCaddress
    volumes:
      - bitcoin_data:/root/.bitcoin/
    ports:
      - 18332:18332

volumes:
  bitcoin_data: 

MainNet


Mainnet Environment Variables and Docker Image Name

  • bitcoin_username=whateveryouwant
  • bitcoin_password=whateveryouwant
  • NETWORK_HEIGHT_URL-https://blockstream.info/api/blocks/tip/height
  • WALLET_NAME=whateveryou want
  • WALLET_ADDRESS=your tss BTC address
  • IMAGE=**zetachain/bitcoin:22-mainnet**

Docker Compose Example:

version: '3'

services:
  bitcoin:
    image: zetachain/bitcoin:22-mainnet
    environment:
      - BITCOIN_USERNAME=whateveryouwant
      - BITCOIN_PASSWORD=whateveryouwant
      - NETWORK_HEIGHT_URL=https://blockstream.info/api/blocks/tip/height
      - WALLET_NAME=whateveryouwant
      - WALLET_ADDRESS=yourtssBTCaddress
    volumes:
      - bitcoin_data:/root/.bitcoin/
    ports:
      - 8332:8332

volumes:
  bitcoin_data: 

Commands for Docker-Compose:


  • When in the same directory as docker-compose.yaml type: docker-compose up for foreground and docker-compose up -d
  • Then you can type docker ps and get the container id.
  • Then you can do docker logs {contianer_id}

Tag summary

Content type

Image

Digest

sha256:a6bbc1020

Size

138.5 MB

Last updated

over 1 year ago

docker pull zetachain/bitcoin