Why Switch to Blockscout?
Why Switch to Blockscout?
- Blockscout is transparent, open-source software. Supported by the community for the community good.
- Blockscout adds new features regularly and offers support quickly.
- Blockscout provides fast and reliable chain information, and robust APIs for developers.
- Blockscout is a proven explorer with a long track record, ecosystem-wide support, high data availability, and a rich feature set
- other explorer do not offer.
Blockscout Features
Blockscout Features
- Deep Search
- Advanced Contract Interaction
- JSON RPC & REST APIs
- User Operations
- Dapp Marketplace
- Enhanced Metadata
- DEX tracker
- Interop explorer in progress
Switching Links
Change links in your application to point to Blockscout- Update primary links. Update all code within an application by replacing the front part of the url. Link Switch Guide
- Update wallet links: Many wallets can be updated manually to switch the primary explorer link to Blockscout. Wallet Update Guide
API updates
Sign up for an API key at https://dev.blockscout.com/- API calls follow the same query structure as Etherscan. Blockscout supports most of the same calls. Replace the front part of the url from https://api.etherscan.io/v2/api?chainid=X** **
to
https://api.blockscout.com/v2/api?chain_id=X- API Docs
- Microservice and related swagger definitions
- A GraphQL playground is built into the explorer. Explore queries and schemas from the interface by visiting https://your-instance-here/graphiql
API Differences
API Differences
1. Account/Address Endpoints
module=account2. Contract Endpoints
module=contract
3. Transaction Endpoints
module=transaction
4. Block Endpoints
module=block5. Token Endpoints
module=token
Note other endpoints contain token specific information including module=stats and module=account.6. Logs/Events Endpoints
module=logs
Both Etherscan and Blockscout use the getLogs endpoint which includes enhanced filtering capabilities- ✅
action=getLogs- Get Event Logs by Address/Topics/Block Range
7. Proxy/ETH RPC Endpoints
Etherscan uses the Proxy modulemodule=proxy to retrieve standard Ethereum JSON-RPC methods.For Blockscout, send post requests toapi.blockscout.com//json-rpcThe following methods are supported:
- eth_blockNumber
- eth_getBalance
- eth_getLogs
- eth_gasPrice
- eth_getTransactionByHash
- eth_getTransactionReceipt
- eth_chainId
- eth_maxPriorityFeePerGas
- eth_getTransactionCount
- eth_getCode
- eth_getStorageAt
- eth_estimateGas
- eth_getBlockByNumber
- eth_getBlockByHash
- eth_sendRawTransaction
- eth_call
8. Stats/Network Information
module=stats
In addition to these stats, Blockscout provides general chain stats via the REST API.9. Gas Tracking
Etherscan Gas Tracker (module=gastracker)- ✅
action=gasoracle- Get Gas Oracle - ✅
action=gasestimate- Get Gas Estimate
- ✅ Gas information integrated into transaction and block data
Contract verification process
Blockscout offers advanced contract verification and interaction possibilities. Pre-existing contracts in various contexts are verified automatically (partial verification - which exposes the contract and methods) via the Ethereum bytecode DB. New contracts (Solidity, Vyper, Yul) can be verified via dev tools or directly in the Blockscout UI.Contract verification guide
Dev tools widely support the Blockscout explorer. For example:
- Ethers.js: https://docs.ethers.org/v6/api/providers/thirdparty/#providers-blockscout
- Hardhat: https://www.npmjs.com/package/@ericxstone/hardhat-blockscout-verify
- Foundry: https://docs.blockscout.com/devs/verification/foundry-verification
- Remix: https://www.blog.blockscout.com/deploy-and-verify-your-contract-using-remix-and-blockscout/
My Account
Blockscout My Account lets you create watchlists, customize your explorer with private tags, create free API keys for extended use and more. My Account GuideMaking the most of your explorer experience
Switching from Etherscan
If you are used to using Etherscan, it is easy to switch to Blockscout. Most information is presented in a similar manner and in similar places in the UI with parity in data presentation. Full migration info hereBlockscout / Etherscan Feature Differences
Blockscout / Etherscan Feature Differences
Additional Blockscout feature set
An itemized list of over 60 features and views available on Blockscout that are not available on Optimistic Etherscan is available here.- DAppscout DApp marketplace providing dapp discovery and interaction features.
- BENS in addition to ENS support, protocols can submit their subgraphs to be supported. Blockscout allows multiple protocols to co-exist within a single network.
- Ads and banner control - Ability to add and curate own ads/banners
- Public tagging - a central microservice allows tags enabled on mainnet to be shown on other chains. This is especially useful for malicious address display.
- Vera and BytecodeDB Bytecode match works for verification info on multiple chains
- Roadmap, research and rollup-specific features
- Rollup-specific feature support (e.g. Fault proofs)
- DA support (e.g. Celestia)
Additional Etherscan feature set (features not yet available on Blockscout)
-
Page views not included in the Blockscout UI
Developer tools not included in Blockscout
- EVM bytecode decompiler (experimental)
- Contract > Similar contracts
- Contract > Diff checker
- Contract > Bytecode to Opcode Disassembler
- Vyper Online Compiler
- AI Code reader