Skip to content

multisig-labs/simple-blockexplorer

 
 

Repository files navigation

Simple Blockexplorer

This blockexplorer is a client-only (i.e. serverless) block explorer, where the client makes RPC calls directly to the blockchain node.

  • Search bar to directly query an address / transaction / block.
  • Changeable RPC URL with chain ID verification.
  • Custom known addresses for better UX.
  • Light & dark theme support.

Usage

Clone the repo, and just yarn. Then, yarn dev to run the web app locally. Enter the RPC url and the chain ID to the settings button on the top right.

Required RPC Endpoints

The connected node must support the following:

Inspired from blockscout.

Misc

I looked through different options for block explorers -> Seems like there's 2 different main kinds.

  • One that has an indexer and has a kinda complex setup and needs infra
    • BlockScout - ($600/mo for their lowest production plan lol). For self hosting, setting up the infra seems like a pain.
    • Explorer as a service providers
  • RPC only (slow but needs no infra)

How to use

How it works: Can pass in any l1 RPC url for the block explorer. The frontend gets the RPC url from the query params and sets it in context. Currently only accepts the RPC query param on the / route but could be easily changed. https://l1-explorer.vercel.app/?rpc=https://node.l1marketplace.com/ext/bc/5mEwEcPTRnezL4asCZSRx1ED1XB5dx8UyQNnuSWGR21C3awzB/rpc

Repo: https://github.com/multisig-labs/simple-blockexplorer

About

A client-only EVM-based block-explorer via RPC calls.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 78.8%
  • CSS 18.2%
  • JavaScript 2.7%
  • SCSS 0.3%