How to connect Etherscan to Atomic Agent in 2 mins: No API key needed

You can check a wallet's balance and recent activity, pick the right gas price before you send and track token transfers for a wallet from Atomic Agent. Composio runs each call on its own Etherscan account, so you don't need a Etherscan API key, and your first $2 is free.

EtherscanInstant · No API key

Atomic Agent runs Etherscan through Composio, and the cost comes out of your free $2.

  • A wallet's balance$0.000016
  • A page of a wallet's transactions$0.000016
  • Safe, standard and fast gas prices$0.000016

$2 ≈ 125000 lookups or 125000 pages

Composio Instant

What you can do with your free $2

What your free $2 gets you with Etherscan
When you ask Atomic Agent forAtomic Agent uses this toolCostWhat $2 gets you
A wallet's balanceGet Native Balance$0.000016 per lookupAbout 125,000 lookups
A page of a wallet's transactionsList Normal Transactions$0.000016 per pageAbout 125,000 pages
Safe, standard and fast gas pricesGet Gas Oracle$0.000016 per checkAbout 125,000 checks
Token transfers for a walletList Token Transfers$0.000016 per pageAbout 125,000 pages
A contract's verified source codeGet Contract Source Code$0.000016 per lookupAbout 125,000 lookups

You pay Etherscan's price for each call with 0% markup, plus the regular Composio tool call charge. There's no Etherscan subscription, and you only pay for what you use.

40 of 54 Etherscan tools work without a key. For Get Address Funding Source, Get Address Metadata, Get API Usage, Get Ether Supply, Get Token Holder Count, Get Token Info and 8 more, connect your own Etherscan key. Read how Instant works.

How it works

How to connect Etherscan to Atomic Agent

Composio adds Etherscan to Atomic Agent as an Instant toolkit. You connect Composio to Atomic Agent once, and then Atomic Agent can use Etherscan right away. There are two ways to do this:

  • Bring your own key

    You bring your own Etherscan API key, set it up, and use it.

  • Use the Composio wallet

    Instant

    Composio runs each call on its own Etherscan account, so you don't have to set anything up at Etherscan, and your first $2 is free.

You do the setup one time and it takes about a minute. If you build Etherscan into your own product, turn on Instant toolkits in your project settings so your agent can call Etherscan for each of your users without a Etherscan API key, and read Instant tools in the Composio docs for the setup steps and code examples.

Get started

Start to use Etherscan in Atomic Agent in 3 steps

  1. Turn on Instant

    Open your Composio wallet and turn on Instant. Your free $2 shows up there.

  2. Add Composio to Atomic Agent

    Follow the setup below. You only do this once.

  3. Ask Atomic Agent for something

    Try a Etherscan prompt. The cost comes out of your $2.

Setup

Connect Etherscan to Atomic Agent

  1. Sign up or sign in to the Composio dashboard. Copy your API key.
  2. In Atomic Agent, open the Integrations tab and select Composio. Select API key, press e, paste the key, and press Enter. The tools become available immediately, without a restart.
  3. Ask Atomic Agent to do something in Etherscan. It searches Composio for the right tool.
  4. On first use, open the sign-in link returned in the chat. Connect your Etherscan account, then return to Atomic Agent to continue.

Headless setup

Add the following line to ~/.atomic-agent/.env, replacing YOUR_COMPOSIO_API_KEY with your key. Start Atomic Agent after saving the file.

bash
COMPOSIO_API_KEY=YOUR_COMPOSIO_API_KEY
Try it

Ask Atomic Agent for something with Etherscan

Start a new chat and try this prompt:

What's the ETH balance of [wallet address or ENS name] on Ethereum? Also list its last 20 transactions with the date, direction, other address, amount in ETH and whether each one succeeded.

Atomic Agent runs it on Instant and shows you the result. It doesn't ask you for a Etherscan key, and the cost comes out of your $2. You can see each call in your wallet.

Optional: connect your own Etherscan key

If you want Get Address Funding Source, Get Address Metadata, Get API Usage, Get Ether Supply, Get Token Holder Count, Get Token Info and 8 more, you need your own key. Ask Atomic Agent to connect your Etherscan account, and it gives you a Composio link:

Connect my Etherscan account using Composio.

Open the link, paste your Etherscan API key and click Connect Account. You can get a key from Etherscan API dashboard. After that, Composio uses your key first and doesn't charge Instant for those calls.

Starter prompts

Use your first $2: copy a prompt into Atomic Agent

Each prompt runs on Instant, and the cost next to it is about what it takes from your $2.

  • Check a wallet's balance and recent activity

    Less than $0.01

    Shows a wallet's ETH balance and its last 20 transactions in a simple table.

    What's the ETH balance of [wallet address or ENS name] on Ethereum? Also list its last 20 transactions with the date, direction, other address, amount in ETH and whether each one succeeded.

  • Pick the right gas price before you send

    Less than $0.01

    Gets the current safe, standard and fast gas prices and estimates how long each one takes to confirm.

    What are the safe, standard and fast gas prices on Ethereum right now, and roughly how many seconds would a transaction take to confirm at each one?

  • Track token transfers for a wallet

    Less than $0.01

    Lists the recent ERC-20 token transfers in and out of a wallet, with token names and amounts.

    List the last 25 ERC-20 token transfers for [wallet address] on Ethereum, with the date, token, amount, direction and the other address. Then total the net amount in or out for each token.

  • Check a smart contract before you use it

    Less than $0.01

    Shows whether a contract's source code is verified, whether it is a proxy, and who deployed it and when.

    Before I approve anything, check the contract at [contract address] on Ethereum. Is the source code verified? What's the contract name and compiler version? Is it a proxy, and if so, what does it point to? Who created it and when?

  • Confirm whether a transaction went through

    Less than $0.01

    Checks a transaction hash and tells you if it succeeded, which block it landed in and what it cost in gas.

    Did transaction [transaction hash] on Ethereum succeed? Tell me the block number, the from and to addresses, the ETH value sent, the gas used and the total fee in ETH.

  • Check balances for a list of wallets

    Less than $0.01

    Looks up the ETH balance of up to 20 wallets at once and shows each one's value in USD.

    Get the ETH balance of these wallets and show each one in ETH and in USD at today's ETH price, plus the total: [paste up to 20 wallet addresses]

  • Check an ERC-20 token's total supply

    Less than $0.01

    Read the current onchain supply for a token contract.

    I want you to do this: On Ethereum mainnet, get the current total supply of the ERC-20 token at [token contract address]. Show the raw smallest-unit value and, using [token decimals], the whole-token amount.

  • Find recent NFT transfers for a wallet

    Less than $0.01

    Review ERC-721 movements for one Ethereum address.

    I want you to do this: List the 20 newest ERC-721 transfers for [wallet address] on Ethereum mainnet. Show the token contract, token ID, direction, other address, transaction hash and block for each transfer.

  • Estimate when a target block will arrive

    Less than $0.01

    Get an approximate countdown to a future Ethereum block.

    I want you to do this: On Ethereum mainnet, estimate how many blocks and seconds remain until block [future block number]. Tell me that the time is an estimate that can change as blocks arrive.

What it can do

What Atomic Agent can do with Etherscan

Works without a key

  • A wallet's balance
  • A page of a wallet's transactions
  • Safe, standard and fast gas prices
  • Token transfers for a wallet
  • A contract's verified source code

Needs your own Etherscan key

  • Get Address Funding Source
  • Get Address Metadata
  • Get API Usage
  • Get Ether Supply
  • Get Token Holder Count
  • Get Token Info
  • Get Verification Status
  • List Daily Block Counts and Rewards
  • and 6 more
Tools and prices

Supported tools (54)

Etherscan tools and their Instant prices
ToolWhat it doesWorks without a keyCost on Instant
Call ContractExecute a read-only eth_call at latest state and return raw ABI-encoded data; no transaction is created.YesEstimated $0.016 per 1,000 API calls
Estimate Confirmation TimeEstimate confirmation time in seconds for an optional exact gas price in wei.YesEstimated $0.016 per 1,000 API calls
Estimate Transaction GasEstimate gas required for a transaction-like call without submitting a transaction.YesEstimated $0.016 per 1,000 API calls
Get Address Transaction CountGet the number of transactions sent from an address at an optional block tag, as hexadecimal.YesEstimated $0.016 per 1,000 API calls
Get Block by NumberGet JSON-RPC block information for an explicit hexadecimal block number or the latest block, returning transaction hashes or full transaction objects.YesEstimated $0.016 per 1,000 API calls
Get Block CountdownEstimate blocks and seconds remaining until a future block is mined.YesEstimated $0.016 per 1,000 API calls
Get Block Number by TimestampGet the decimal block number closest before or after a Unix timestamp in seconds.YesEstimated $0.016 per 1,000 API calls
Get Block RewardsGet a block's miner reward, uncle inclusion reward, and included uncle records.YesEstimated $0.016 per 1,000 API calls
Get Block Transaction CountGet a block's total JSON-RPC transaction count as hexadecimal, without transfer-type breakdowns.YesEstimated $0.016 per 1,000 API calls
Get Block Transaction CountsGet Ethereum mainnet normal, internal, ERC20, ERC721, and ERC1155 transaction counts for a decimal block number.YesEstimated $0.016 per 1,000 API calls
Get Contract ABIGet the JSON-encoded ABI string for a verified contract.YesEstimated $0.016 per 1,000 API calls
Get Contract BytecodeGet bytecode stored at an address for an optional named or hexadecimal block tag.YesEstimated $0.016 per 1,000 API calls
Get Contract CreationGet creator, creation transaction, block, Unix-second timestamp, factory, and creation bytecode for up to five contracts on one chain.YesEstimated $0.016 per 1,000 API calls
Get Contract Execution StatusGet whether a transaction's contract execution failed and any provider error description.YesEstimated $0.016 per 1,000 API calls
Get Contract Source CodeGet source code plus compiler, proxy, implementation, license, and verification metadata for one contract.YesEstimated $0.016 per 1,000 API calls
Get Contract StorageGet the raw value at a contract storage position for an optional block tag.YesEstimated $0.016 per 1,000 API calls
Get Current Gas PriceGet the canonical JSON-RPC current gas price in wei as hexadecimal; use Get Gas Oracle for recommendations.YesEstimated $0.016 per 1,000 API calls
Get ERC20 BalanceGet one address's ERC20 token balance in exact smallest units, optionally at a historical block.YesEstimated $0.016 per 1,000 API calls
Get ERC20 Total SupplyGet an ERC20 token's current total supply, or its historical supply when block_number is provided; historical lookup requires Standard+, is mainnet-only, and is unavailable on testnets.YesEstimated $0.016 per 1,000 API calls
Get Gas OracleGet current safe, proposed, and fast gas-price recommendations and the suggested base fee as gwei strings.YesEstimated $0.016 per 1,000 API calls
Show all 54 tools
More Etherscan tools and their Instant prices
ToolWhat it doesWorks without a keyCost on Instant
Get Latest Block NumberGet the latest block number as an exact hexadecimal JSON-RPC quantity.YesEstimated $0.016 per 1,000 API calls
Get Latest Native PriceGet the latest native-token prices in BTC and USD with their Unix-second timestamps.YesEstimated $0.016 per 1,000 API calls
Get Native BalanceGet one address's native-token balance in exact wei, optionally at a historical block.YesEstimated $0.016 per 1,000 API calls
Get Native BalancesGet native-token balances for up to 20 addresses in one call, returning wei as exact decimal strings on one chain.YesEstimated $0.016 per 1,000 API calls
Get Node CountGet the current discoverable-node count or daily historical counts over a UTC date range.YesEstimated $0.016 per 1,000 API calls
Get TransactionGet one full JSON-RPC transaction by hash or by hexadecimal block number and transaction index.YesEstimated $0.016 per 1,000 API calls
Get Transaction ReceiptGet a full JSON-RPC transaction receipt, including event logs, by hash on one chain.YesEstimated $0.016 per 1,000 API calls
Get Transaction Receipt StatusGet a transaction receipt's success or failure status string.YesEstimated $0.016 per 1,000 API calls
Get Uncle BlockGet an uncle block by optional hexadecimal parent block number and uncle index.YesEstimated $0.016 per 1,000 API calls
List Beacon WithdrawalsList one page of beacon-chain withdrawals, optionally filtered by recipient and inclusive block range.YesEstimated $0.016 per 1,000 API calls
List Chain SizeList daily Ethereum node-chain size measurements for one client and sync mode over a date range.YesEstimated $0.016 per 1,000 API calls
List Event LogsList one provider page of event logs over an inclusive block range, filtered by an emitting address, indexed topics, or both.YesEstimated $0.016 per 1,000 API calls
List Internal TransactionsList internal transactions by address, transaction hash, or an unfiltered block range.YesEstimated $0.016 per 1,000 API calls
List L2 Bridge TransactionsList one page of canonical L2 deposits from Ethereum or withdrawals to Ethereum for an address on a supported L2.YesEstimated $0.016 per 1,000 API calls
List Normal TransactionsList one provider page of an address's normal transactions, optionally filtered by start and end block.YesEstimated $0.016 per 1,000 API calls
List Plasma DepositsList one page of Plasma deposit transactions on documented Polygon, Gnosis, or BitTorrent Chain networks, optionally filtered by recipient address.YesEstimated $0.016 per 1,000 API calls
List Supported ChainsList current Etherscan mainnet and testnet chains, explorer and API URLs, and service status.YesEstimated $0.016 per 1,000 API calls
List Token TransfersList one provider page of ERC20, ERC721, or ERC1155 transfers, selected by token_standard and filtered by an account, token contract, or both on one chain.YesEstimated $0.016 per 1,000 API calls
List Validated BlocksList one page of full blocks or pre-Merge uncle blocks validated by an address.YesEstimated $0.016 per 1,000 API calls
Resolve ENS NameResolve an ENS name or supported onchain subdomain to an address on Ethereum mainnet.YesEstimated $0.016 per 1,000 API calls
Get Address Funding SourceGet the first transaction and address that funded an externally owned account.Needs your own keyBilled to your own Etherscan key
Get Address MetadataGet Etherscan nametags, labels, reputation, notes, and provider-defined metadata for up to 100 addresses.Needs your own keyBilled to your own Etherscan key
Get API UsageGet API credits used, available, and allowed for the connected API key's current interval.Needs your own keyBilled to your own Etherscan key
Get Ether SupplyGet Ether supply in wei, either the basic block-reward supply or the ETH-specific component breakdown including staking, EIP-1559 burned fees, and staking withdrawals.Needs your own keyBilled to your own Etherscan key
Get Token Holder CountGet the number of addresses currently holding an ERC20 token.Needs your own keyBilled to your own Etherscan key
Get Token InfoGet token identity, standard, supply, verification, project links, price, and logo metadata for an ERC20, ERC721, or ERC1155 contract.Needs your own keyBilled to your own Etherscan key
Get Verification StatusCheck source-code or proxy verification status for a GUID returned by a prior verification submission.Needs your own keyBilled to your own Etherscan key
List Daily Block Counts and RewardsList daily mined-block counts and corresponding block rewards in ether over a UTC date range.Needs your own keyBilled to your own Etherscan key
List Daily Gas PricesList daily minimum, average, and maximum gas prices in wei over a UTC date range.Needs your own keyBilled to your own Etherscan key
List Daily Network MetricsList one normalized daily scalar metric over a UTC date range.Needs your own keyBilled to your own Etherscan key
List Daily Uncle Counts and RewardsList daily uncle-block counts and uncle rewards in ether over a UTC date range.Needs your own keyBilled to your own Etherscan key
List ERC721 InventoryList one page of ERC721 token IDs owned by an address for one collection.Needs your own keyBilled to your own Etherscan key
List Token HoldersList one page of ERC20 holders or up to 1000 top holders for a token.Needs your own keyBilled to your own Etherscan key
List Token HoldingsList one page of ERC20 token balances or ERC721 collection quantities held by an address.Needs your own keyBilled to your own Etherscan key
Pricing

How you pay for Etherscan

  • Your first $2 is freeIt's added to your Composio wallet when you turn on Instant.
  • You pay for each callYou pay Etherscan's price with 0% markup, plus the regular Composio tool call charge.
  • Your own key comes firstIf you connect your own Etherscan key, Composio uses it and doesn't charge Instant for those calls.
  • You control the costYou can ask your agent to check with you before each paid call, and you can turn Instant off at any time.
  • You can see each callYour wallet shows each call and what it cost.
  • When your balance runs outYou can add funds to your wallet on a Pro plan or connect your own key.
Help

Troubleshooting

  1. 1. Atomic Agent asks me for a Etherscan API key

    You may have asked for something that needs your own key, like Get Address Funding Source, Get Address Metadata, Get API Usage, Get Ether Supply, Get Token Holder Count, Get Token Info and 8 more. Those tools don't run on Instant. For everything else, check that Instant is turned on in your Composio wallet, then ask again.

  2. 2. I can't see my free $2

    Open your wallet in the Composio dashboard and check that Instant is turned on. If the $2 still isn't there, email support@composio.dev from the address you signed up with.

  3. 3. A Etherscan call failed with a balance error

    Your balance is empty. Add funds to your wallet on a Pro plan, or connect your own Etherscan key, then try again.

  4. 4. Why is my API key rejected?

    Copy the key directly from the Composio dashboard. Atomic Agent requires ASCII characters because it sends the key in an HTTP header. Remove any extra characters introduced when copying.

  5. 5. Why are Composio tools unavailable after saving a key?

    Check that you use Atomic Agent v0.5.6 or later and that Composio is enabled in your configuration. A "composio": { "enabled": false } setting disables the integration while keeping the saved key on disk.

  6. 6. Does Composio have a free plan?

    The Hobby plan includes 100,000 tool calls per month. Composio-managed OAuth apps have a lower included allowance. See Composio pricing for the current limits that apply to your connection.

FAQ

Frequently asked questions

Start with Etherscan.It takes 30 seconds.

New accounts get a one-time $2 starter credit for Instant calls.Run Etherscan from your agent with no Etherscan key.

Get $2 starter credit