Migrate from Etherscan
Etherscan API V2 serves every chain from one base URL, selecting the chain with a chainid query parameter. Routescan's Etherscan-compatible API works the same way with the chain id in the path, so switching over is a base-URL change: your module/action calls and response handling stay the same.
Swap the base URL
Etherscan V2 selects the chain with ?chainid=; Routescan puts it in the path as the {chainId} segment, next to a {network} segment. Everything after etherscan/api stays identical.
https://api.etherscan.io/v2/api?chainid=1&module=account&action=balance&address=0xde0b...bae&tag=latest&apikey=YourEtherscanKeyhttps://api.routescan.io/v2/network/mainnet/evm/1/etherscan/api?module=account&action=balance&address=0xde0b...bae&tag=latest{network}:mainnetortestnet.{chainId}: the exact Routescan id, including any suffix, listed in Supported chains.
One key, every chain
Like Etherscan V2, a single apikey works across every chain (no per-explorer keys), and it is optional on the free tier. Change only the {chainId} segment to cover every supported API chain. See Supported chains, Pricing and Rate limits, and browse the modules under the Etherscan-compatible API.
Automate the migration with an LLM
Open your codebase in an AI assistant (Claude, Cursor, ChatGPT, …) and paste the prompt below to convert your Etherscan calls automatically: