Building A Chainwalker

To get started creating a Chainwalker, Flipside will share a private Github repository with your team that contains the following boilerplate structure:

schema/
|--block_schema.json
|--transaction_schema.json
parsing/
...your custom parsing code...
Dockerfile
get_height.sh
parse_blocks.sh

schema/ -- this directory contains json files representing the decoded schemas specific to your chain

parsing/ -- this directory contains your custom parsing code

Flipside utilizes two bash scripts that serves as the entrypoints to your parser:

  • get_height.sh - retrieves the best block height

  • parse_blocks.sh - accepts an array of block heights and returns an array of fully decoded data

The Dockerfile containerizes your environment and allows the Chainwalkers framework to remain language agnostic.

From here there are 3 steps to creating a fully complete Chainwalker:

  1. Defining your schema (next section)

  2. Writing your parser

  3. Dockerizing your Environment