scroll down

Built on Substrate: Polkascan

Substrate for Substrate chains. How Polkascan is building a multi-chain block explorer using Substrate. As Substrate’s 1.0 release nears…

Phil Lucsok
Product Communication Manager @ Parity Technologies
July 14, 2019
2 Min Read

Substrate for Substrate chains. How Polkascan is building a multi-chain block explorer using Substrate.

As Substrate's 1.0 release nears, many projects have already begun building on the blockchain framework. One such project that's been working closely with the Parity development team is Polkascan, the first multi-chain block explorer.

Block explorers allow the public to query the blockchain for addresses, transactions (what we call "extrinsics" in Substrate), block details and all data stored in blockchains, so that users and developers can verify states, transactions and blocks on the network. Polkascan uses Substrate as the technological basis for making data on Substrate blockchains accessible and understandable.

A multi-chain explorer

There are unique challenges in building a block explorer for the many different parachains that will connect to Polkadot, such as meeting each chain's requirements for specialized transactions, varying block times, and unique data types.

Thanks to Substrate, every chain that is built on this framework shares common principles, which makes it possible for the first time to build a multi-chain explorer on a singular tech stack.

"We believe Substrate is one of the core technology frameworks that allows teams to easily and rigorously develop a very broad spectrum of blockchains and state machines. By building explorers that are compatible with Substrate, we make our explorers compatible with all the tech that is being built using Substrate." -- Emiel Sebastiaan, CEO Polkascan

The alpha version of Polkascan is live on Polkascan.io, and is already serving the data of Polkadot and three other networks built on Substrate including Robonomics, Joystream, and Edgeware.

Milestones and Progress

The Web3 Foundation (W3F) has awarded Polkascan with a grant to complete a fully functional multi-chain explorer, and progress has been steadily moving forward. Three major milestones outlined by the W3F, including the finalized architecture design and support for Substrate's core data types, have already been completed.

The latest milestone reached by the Polkascan is support for Substrate's Runtime Module Library (SRML), so that custom Substrate chains that utilize governance, accounts, treasury, and democracy modules can have this specialized data presented and accessible on Polkascan.io.

The third milestone extends the base system-architecture of the explorer with a number of Substrate Runtime Module Libraries (SRML) that are key to the inner workings of the Polkadot Relay Chain, such as: timestamp, indices (accounts), sessions, democracy & staking. With this milestone the explorer should provide basic data structures for the following entities: block timestamps, accounts, staking (validators), sessions (validators) & democracy (proposals, referenda).

built-on-polkascan-image-one.png

Once support for the SRML is completed, Polkascan will continue optimizing their database and server architecture so that users can quickly and easily find the data they're looking for, no matter which Substrate chain they want to query.

Start exploring the chains on Polkascan.io right now, and if you want to dig into the code, it's open-source and hosted at https://github.com/polkascan.