Coder Social home page Coder Social logo

angganurfaizal / stacks-blockchain-docker Goto Github PK

View Code? Open in Web Editor NEW

This project forked from stacks-network/stacks-blockchain-docker

0.0 0.0 0.0 629 KB

Stacks-blockchain with API using docker compose

License: GNU General Public License v3.0

Shell 100.00%

stacks-blockchain-docker's Introduction

Stacks Blockchain with Docker

License: GPL v3 Pull Requests Welcome

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

โš ๏ธ docker-compose version 2.2.2 or greater is required


Quickstart

git clone https://github.com/stacks-network/stacks-blockchain-docker && cd stacks-blockchain-docker
cp sample.env .env

Sync from genesis

./manage.sh -n mainnet -a start

Seed chainstate from Hiro Archiver

Using data from the Hiro Archiver service, this script will download the latest files, extract them and restore the postgres data.
Note: it can take a long time to process the data, and you'll need at a minimum roughly 150GB of free space

sudo ./scripts/seed-chainstate.sh
./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

stacks-blockchain-docker's People

Contributors

wileyj avatar criadoperez avatar friedger avatar kantai avatar akirtovskis avatar marvinjanssen avatar dcsan avatar charliec3 avatar lgalabru avatar d1gitalflow avatar sangwon0001 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.