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.
Quick Links¶
Block Explorer | Type | URL |
---|---|---|
Moonscan | EVM | https://moonbeam.moonscan.io/ |
Expedition | EVM | https://moonbeam-explorer.netlify.app/?network=Moonbeam |
Subscan | Substrate | https://moonbeam.subscan.io/ |
Polkadot.js | Substrate | https://polkadot.js.org/apps/#/explorer |
Block Explorer | Type | URL |
---|---|---|
Moonscan | EVM | https://moonriver.moonscan.io/ |
Expedition | EVM | https://moonbeam-explorer.netlify.app/?network=Moonriver |
Subscan | Substrate | https://moonriver.subscan.io/ |
Polkadot.js | Substrate | https://polkadot.js.org/apps/#/explorer |
Block Explorer | Type | URL |
---|---|---|
Moonscan | EVM | https://moonbase.moonscan.io/ |
Expedition | EVM | https://moonbeam-explorer.netlify.app/?network=MoonbaseAlpha |
Subscan | Substrate | https://moonbase.subscan.io/ |
Polkadot.js | Substrate | https://polkadot.js.org/apps/#/explorer |
Block Explorer | Type | URL |
---|---|---|
Expedition | EVM | https://moonbeam-explorer.netlify.app/?network=MoonbeamDevNode |
Polkadot.js | Substrate | https://polkadot.js.org/apps/#/explorer |
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
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:
- 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
- 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
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.
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.
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
.
| Created: January 25, 2021