Block Explorer exposes API functions to retrieve on-chain data from a tessellation opensearch database cluster.
- TypeScript
- Serverless Framework
- Docker Desktop with Kubernetes enabled
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
).
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.
Run the unit tests locally:
npm run test