friedger / explorer

Blockchain explorer for Stacks 2.0

Home Page:https://testnet-explorer.blockstack.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Stacks 2.0 Explorer

An image of the Stacks Explorer

Getting started

The Stacks Explorer is built with react, next.js and @blockstack/ui. To run the explorer locally, you can clone this repo and install the dependencies needed. Make sure you have yarn installed.

yarn

Env variables

The application needs a couple of env variables to work properly:

MOCKNET_API_SERVER=https://crashy-stacky.zone117x.com
TESTNET_API_SERVER=https://stacks-node-api.blockstack.org

Run in development mode

To build and run the application, you can run this yarn task which will launch the application at http://localhost:3000.

yarn dev

Using a local mocknet

The Stacks Explorer connects to the Stacks Blockchain via an API server found here: stacks-blockchain-sidecar. The Explorer can connect and switch between a few different versions of the network: testnet, mocknet, and a local instance. To run a local instance of the Sidecar API, please read this. Once you have the Sidecar API running, it should be located at http://localhost:3999. You can then from within your local version of the Explorer switch between the three network options:

A gif of the network switcher found within the explorer

Building for production

To build for production, run yarn build which will run the default next.js build task.

About

Blockchain explorer for Stacks 2.0

https://testnet-explorer.blockstack.org/

License:MIT License


Languages

Language:TypeScript 98.3%Language:JavaScript 1.7%Language:Dockerfile 0.1%