Skip to content

Block Explorers

Introduction

Block explorers can be thought of as search engines for the blockchain. They allow users to search for information such as balances, contracts, and transactions. More advanced block explorers even offer indexing capabilities, which enable them to provide a complete set of information, such as ERC-20 tokens in the network. They might even offer API services to access it via external services.

Moonbeam provides two different kinds of explorers: ones to query the Ethereum API and others dedicated to the Substrate API. All EVM-based transactions are accessible via the Ethereum API, while the Substrate API can be relied upon for Substrate-native functions such as governance and staking. The Substrate API also includes information about the EVM-based transactions, but only limited information is shown.

Ethereum API

Moonscan

Moonscan is the primary Ethereum API block explorer for Moonbeam-based networks. Built by the Etherscan team, Moonscan provides a powerful, intuitive, and feature-rich experience. In addition to its comprehensive transaction and block data, Moonscan provides a number of statistics and charts, such as average gas price, daily transactions, and block size charts.

Other Moonscan features include:

  • Collator leaderboard ranking collators by performance
  • Contract source code verification, accessible both via a web interface and an API
  • Ability to read and write state data of verified smart contracts
  • Token approvals where you can view and revoke any of your prior token approvals
  • Adding token information and creating a profile for ERC-20s, ERC-721s, and ERC-1155s deployed to Moonbeam-based networks. The profile can include links to your project, social media, price data, and other information pertaining to your token

Moonbeam Moonscan

Expedition

A Moonbeam-themed version of the Expedition explorer can be found in this link. It is a basic JSON-RPC based explorer.

By default, the explorer is connected to Moonbeam. However, you can switch to Moonriver or Moonbase Alpha, or connect it to a local dev node by following the next steps:

  1. Click on the network text, where you'll be able to select between all different networks, including a Moonbeam Development Node running on http://127.0.0.1:9944
  2. In the case you want to connect to a specific RPC URL, select Add Custom Chain and enter the URL. For example, http://localhost:9937

Expedition Explorer

Substrate API

Subscan

Subscan is the primary Substrate API block explorer for Moonbeam-based networks. Subscan is capable of parsing standard or custom modules. For example, this is useful to display information regarding the Staking, Governance, and EVM pallets (or modules). The code is all open-source and can be found in the Subscan Essentials GitHub repo.

Subscan Moonbeam

Polkadot.js

While not a full-featured block explorer, Polkadot.js Apps is a convenient option especially for users running local development nodes to view events and query transaction hashes. Polkadot.js Apps uses the WebSocket endpoint to interact with the Network. You can easily connect to Moonbeam, Moonriver, or Moonbase Alpha.

Polkadot.js Moonbeam

To connect it to a Moonbeam development node, you can follow the steps in the Connecting Polkadot.js Apps to a Local Moonbeam Node section of the Getting Started with a Moonbeam Development Node guide. The default port for this is 9944.

Polkadot.js Local Node

Last update: January 25, 2024
| Created: January 25, 2021