Skip to main content
Etherscan’s CLI gives you command line access to our API V2. These structured inputs have proven beneficial to AI agents, by encapsulating authentication and individual API methods to simple —flags. This official CLI will also be maintained to be 1:1 to the existing APIs as soon as any changes are made.

Installation

Download the build from our Release page for your environment. Start by providing your API key for authentication.
etherscan login
From here you can handover to your agent, who will have access to all the API V2 endpoints. Plus utility tools to check available rate limits, supported chains etc below.

Prompts

List down supported chains and chain IDs.

Check an address's current ETH balance.