IPC Explorer
75%
average score over 2 application evaluations
Developed an MVP of a blockchain explorer for InterPlanetary Consensus (IPC) without an indexing backend, using React, ethers.js, and public Filecoin RPC providers, with some limitations on tracking subnet events and cross-origin issues.

The initial goal of this project was to build a minimum viable product (MVP) of the IPC explorer. See what's next after the MVP.

InterPlanetary Consensus (IPC) is a revolutionary blockchain technology that powers planetary-scale web3 apps.

You can learn more about this technology at https://www.ipc.space.

Using IPC Explorer you can:

  • Browse subnets.
  • View subnet configuration.
  • View the last committed bottom-up checkpoint of a subnet.
  • View subnet genesis validators.
  • View recent subnet deposits.
  • View recent subnet withdrawals.
  • View recent subnet transactions.

How it's made

  • To narrow the scope of the MVP the decision was made to not build an indexing backend at this stage.
  • The application relies on public Filecoin RPC providers.
  • IPC Explorer is a single page application (SPA) built using React.
  • The application uses ethers.js to:
    • Call various methods of the IPC Subnet Actor (ISA) and the IPC Gateway Actor (IGA) smart contracts to collect various information about subnets.
    • Fetch blocks, transactions, and events from the root network and its child subnets.

Known issues and limitations

  • Listing subnet withdrawals may not work. It relies on the NewBottomUpMsgBatch event of the IPC Gateway Actor smart contract. But for some reason, I do not observe such events via a local subnet RPC during manual testing.
  • Connecting to a subnet RPC provider is subject to same-origin policy. Therefore, you can only connect to a local subnet RPC provider from a locally running application. Connecting to a public subnet RPC provider is possible if the provider explicitly allows it by setting corresponding CORS headers.
  • Not displaying when the last bottom-up checkpoint of a subnet was committed to the parent. Finding in what parent block a subnet committed its last bottom-up checkpoint is inefficient without having an indexing backend. In the worst-case scenario, you'd have to scan the parent from its current block down to the subnet's genesis block to find the last checkpoint transaction.
  • L3+ subnets are not supported. Nested subnets would require different application architecture and more sophisticated UX. It is simply out of scope of the MVP.

Why building from scratch?

Since the Filecoin Virtual Machine used by IPC is an EVM-compatible runtime, you may wonder, can't we just use some existing open-source blockchain explorer like Blockscout? And the short answer is yes, we can. But, the user experience will be poor out-of-the-box.

  • Blockscout doesn't support simultaneously connecting to multiple RPC providers. This means you either look at a parent or a child IPC network at a time. Or have to deploy a separate Blockscout instance for every subnet. Which seems inefficient.
  • Blockscout is a general-purpose blockchain explorer and knows nothing about IPC subnets. Even if you upload and verify IPC-specific smart contracts into it, this will improve visibility into subnets just a little. And the UX will remain poor. Because you still need to manually call a set of Gateway and Subnet Actor methods to gather info about subnets.

So for the best visibility into subnets and a good user experience you either fork and extend something like Blockscout or build your own IPC explorer from scratch. For this MVP I chose the latter.

What's next?

Before the IPC General Availability launch (planned for 2024 Q3) I want to build a production-ready IPC explorer. The key difference from the current MVP will be having an indexing backend. This backend will greatly improve the UX of the explorer and enable new features. To name a few:

  • Full history of transactions, messages, events, etc. is available and searchable.
  • Various charts and analytics based on real-time and historical data.
  • Quicker application load times.

Another useful feature will be the ability to connect your Metamask wallet to a subnet.

IPC Explorer History

People donating to IPC Explorer, also donated to

KultureCity campaign supporting individuals with invisible disabilities by creating sensory-accessible spaces and raising awareness through a digital collectible fundraiser.
Volunteered as a Discord/Telegram moderator for Gitcoin, fighting POAP farmers, assisting the community, and proposed a grant review tool for Gitcoin's impact assessment.
Analyzing data to enhance governance and funding for public goods, known for impact metrics on open source and Gitcoin.
A platform offering content on crypto from a leftist perspective, addressing socioeconomic impacts and suggesting progressive directions for the blockchain ecosystem.
Decentralized Ethereum scaling solution ensuring 100% uptime using special calldata and an open source VM, without reliance on external dependencies.