Your own custom explorer
Last updated
Last updated
Intro
During development, it is often useful to visualize changes in the chain.
For example, when launching a private testnet, it would be interesting to know the details of the network operation - created blocks, transaction statuses, validators, shards, and so on.
That is why we decided to make our explorer open source. But in general, there are two reasons:
The ability to make changes to the common repository by different developers
The ability to simplify the process of development and interaction with the Klyntar network
Therefore, below you will see the process of launching a local explorer and a short guide on using it using the example of a local testnet with 1 shard and 1 validator
Install Node.js first
Then, clone repository
Then, go to repository and install dependencies
Now, if you need just explorer to view network - build it and run
In case you want to make changes to explorer and track changes - run it in development mode
By default, explorer expects a URL for node RPC. This is how it looks like in code
So, set KLYNTAR_NODE_URL
manually in Linux/Windows/Mac or just run your node on port 7332
Go to http://localhost:3000 and check the main page of explorer
There are 3 main areas you should pay attention to here:
Searchbar
Network Parameters section
Network Info - section with starting points to other pages that detail the explorer
Find out more about how to use them in the Usage guide section