/stacks-blockchain-docker

Stacks-blockchain with API using docker compose

Primary LanguageShellGNU General Public License v3.0GPL-3.0

Stacks Blockchain with Docker

License: GPL v3 Pull Requests Welcome

Run your own Stacks Blockchain node easily with just few commands.


Quickstart

git clone https://github.com/stacks-network/stacks-blockchain-docker && cd stacks-blockchain-docker
cp sample.env .env
./manage.sh -n mainnet -a start

Accessing the services

For networks other than mocknet, downloading the initial headers can take several minutes.
Until the headers are downloaded, the /v2/info endpoints won't return any data.
Use the command ./manage.sh -n <network> -a logs to check the sync progress.

stacks-blockchain:

curl -sL localhost:20443/v2/info | jq

stacks-blockchain-api:

curl -sL localhost:3999/v2/info | jq

proxy (optional argument):

curl -sL localhost/v2/info | jq
curl -sL localhost/ | jq