# Etherscan API reference

> The Etherscan API returns on-chain data for Ethereum and for other EVM chains that Etherscan supports: native balances, normal and token transactions of an address, verified contract source code and ABI, contract creators, transaction execution status and ENS name resolution. An investigator uses…

Source: https://osinttools.io/apis/etherscan/ (Markdown view of an OSINTtools.io page; append `.md` to any page URL for this format).

Compiled by OSINTtools.io editors from the vendor's docs, updated Nov 29, 2026. Listing: https://osinttools.io/tools/etherscan/

- Base URL: https://api.etherscan.io/v2
- Authentication: API key in the `apikey` query parameter. Get a key: https://docs.etherscan.io/set-up-your-api-key One key works across the supported chains; pick the chain with chainid.
- Free tier: yes
- Pricing: Subscription
- Rate limits: Free plan: 3 calls per second, up to 100,000 calls per day (selected chains only). Paid plans range from 5 to 30 calls per second and 100,000 to 1,500,000 calls per day.
- Vendor docs: https://docs.etherscan.io

## Overview

The Etherscan API returns on-chain data for Ethereum and for other EVM chains that Etherscan supports: native balances, normal and token transactions of an address, verified contract source code and ABI, contract creators, transaction execution status and ENS name resolution. An investigator uses it to follow funds and to see who created a contract.

All calls are `GET` requests to one URL, `https://api.etherscan.io/v2/api`. The operation is chosen with the `module` and `action` query parameters, the chain with `chainid` (for example `1` for Ethereum, `42161` for Arbitrum), and the key is sent as the `apikey` query parameter. Responses are JSON with `status`, `message` and `result`; the shape of `result` depends on the action.

Actions documented here (see the [endpoint overview](https://docs.etherscan.io/endpoint-overview) for all of them):

- `module=account&action=balance`: native balance in wei; `address`, optional `tag` (`latest` or a hex block within the last 128).
- `module=account&action=txlist`: normal transactions of `address`; optional `startblock`, `endblock`, `page`, `offset`, `sort`.
- `module=account&action=tokentx`: ERC-20 transfers; `address` and/or `contractaddress`, plus the same paging options.
- `module=contract&action=getsourcecode`: verified source, ABI, compiler and proxy data for `address`.
- `module=contract&action=getcontractcreation`: creator, creation transaction and block for up to 5 `contractaddresses`.
- `module=transaction&action=getstatus`: whether `txhash` failed during execution, and why.
- `module=ens&action=forwardresolve`: the address for an ENS `name`; Ethereum mainnet only, cached up to 5 minutes, 1 call per second on the Free plan.

The docs list per-second and per-day limits by plan; endpoints marked PRO are not available on the Free and Lite plans.

## Account, contract, transaction and ENS actions

### One endpoint, chosen by module and action: balances, transactions, token transfers, contract source, status, ENS.

`GET /api`

- Takes: Crypto wallet
- Footprint: passive (the target is not contacted)
- Plan: Any plan

Set `module` and `action` as listed in the overview, then the parameters of that action. Examples: `account`/`balance`, `account`/`txlist`, `account`/`tokentx`, `contract`/`getsourcecode`, `contract`/`getcontractcreation`, `transaction`/`getstatus`, `ens`/`forwardresolve`.

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `chainid` | query | string | yes | Chain ID, for example 1 for Ethereum or 42161 for Arbitrum (ens/forwardresolve: 1 only) Example: 1 |
| `module` | query | string | yes | Module of the action Example: account One of: account, contract, transaction, ens |
| `action` | query | string | yes | Action within the module Example: balance One of: balance, txlist, tokentx, getsourcecode, getcontractcreation, getstatus, forwardresolve |
| `address` | query | string | no | Address to query (balance, txlist, tokentx, getsourcecode) Example: 0x0000000000000000000000000000000000000001 |
| `contractaddress` | query | string | no | ERC-20 token contract to filter by (tokentx) Example: 0x0000000000000000000000000000000000000003 |
| `contractaddresses` | query | string | no | Up to 5 contract addresses, comma-separated (getcontractcreation) Example: 0x0000000000000000000000000000000000000003 |
| `txhash` | query | string | no | Transaction hash (getstatus) Example: 0x1111111111111111111111111111111111111111111111111111111111111111 |
| `name` | query | string | no | ENS name to resolve (forwardresolve) Example: example.eth |
| `tag` | query | string | no | latest, or a hex block number within the last 128 blocks (balance) Example: latest |
| `startblock` | query | integer | no | Block number to start from (txlist, tokentx) Example: 0 |
| `endblock` | query | integer | no | Block number to stop at (txlist, tokentx) Example: 99999999 |
| `page` | query | integer | no | Page number (txlist, tokentx) Example: 1 |
| `offset` | query | integer | no | Records per page (txlist, tokentx) Example: 100 |
| `sort` | query | string | no | desc returns the latest first, asc the oldest first (txlist, tokentx) Example: asc One of: asc, desc |

Response fields:

- `status` (string): "1" if data was returned, "0" otherwise (an error or an empty result)
- `message` (string): "OK" on success, or an error description such as NOTOK
- `result` (string): Depends on the action: balance in wei (balance); array of transactions with hash, from, to, value, timeStamp, blockNumber (txlist, tokentx, which adds tokenName, tokenSymbol, tokenDecimal); array with SourceCode, ABI, ContractName, Proxy (getsourcecode); array with contractAddress, contractCreator, txHash (getcontractcreation); object with isError and errDescription (getstatus); resolved address (forwardresolve)

```bash
curl 'https://api.etherscan.io/v2/api?chainid=1&module=account&action=balance&apikey=YOUR_API_KEY'
```

Example response (200):

```json
{
  "status": "1",
  "message": "OK",
  "result": "172774397764084972158218"
}
```

---

Listings on OSINTtools.io are reviewed by editors and re-verified on a schedule; check pricing and availability on the vendor's site before relying on them, and use OSINT tools only with a lawful basis.
Site index for agents: https://osinttools.io/llms.txt · Full catalog: https://osinttools.io/llms-full.txt · MCP server (Streamable HTTP, no auth): https://osinttools.io/mcp/
