Skip to content

Constellation-Labs/block_explorer

Repository files navigation

Block Explorer

build version

Block Explorer exposes API functions to retrieve on-chain data from a tessellation opensearch database cluster.

Build and Run

Prerequisites

  1. TypeScript
  2. Serverless Framework
  3. Docker Desktop with Kubernetes enabled

Setup local development cluster

An opensearch instance is used to store and query the on-chain data.

Follow the instructions from the snapshot streaming repository which sets up your local tessellation development cluster along with an opensearch instance (hosted on port 4510).

Run

Install the npm packages from the project directory:

npm install

Start the serverless offline host to test the APIs locally:

serverless offline

The output of this command shows an overview of the function URL's that can be called locally.

Unit Tests

Run the unit tests locally:

npm run test