> ## Documentation Index
> Fetch the complete documentation index at: https://docs.webrouter.net/llms.txt
> Use this file to discover all available pages before exploring further.

# Etherscan

> EVM blockchain explorer data across 50+ chains with one key: balances, transactions, token and NFT transfers, token holders, contract source and ABI, event logs and gas prices.

![](https://mintcdn.com/webrouter/gPu3tCeozwRcDBjt/logo/data-apis/etherscan.webp?fit=max\&auto=format\&n=gPu3tCeozwRcDBjt\&q=85\&s=e2e9ba4d5dd46df44c98170214442d1d)

[Web Catalog · Finance](https://docs.webrouter.net/data-apis.md?category=finance)

Needs&#x20;

`ETHERSCAN_API_KEY`

Endpoints

16

Auth

Key in query

[Vendor docs](https://docs.etherscan.io/)

&#x20;·&#x20;

[Pricing](https://etherscan.io/apis)

## Setup

| Variable | | What it is |
| - | - | - |
| `ETHERSCAN_API_KEY` | required | An Etherscan API key (etherscan.io > API Keys). Sent as the apikey query parameter; one key covers every supported chain. |

Put them in your environment or `.env`; [Data APIs](https://docs.webrouter.net/vendors.md) covers the other ways.

## Notes

* Every call is GET /v2/api with chainid, module and action; each endpoint here fixes module and action, and chainid picks the chain.
* Free plan: 3 calls/second and 100,000 calls/day on the free-tier chains only (Base, BNB Chain, OP, Avalanche and others need a paid plan). Calls past the daily cap are blocked until it resets.
* Endpoints marked PRO need the Standard plan or above.
* status '0' means an error or simply no records; read message and result.
* Amounts are integer strings in the smallest unit: wei for native balances, 10^decimals for tokens.

## Endpoints

GET

Get an address's native balance

Native token (ETH, POL...) balance of one address.

[Open](#etherscan-account-balance)

GET

Get native balances of several addresses

Native token balances of up to 20 addresses in one call.

[Open](#etherscan-account-balancemulti)

GET

List an address's transactions

Normal (external) transactions sent from or to an address.

[Open](#etherscan-account-txlist)

GET

List an address's internal transactions

Internal (contract-initiated) transfers involving an address.

[Open](#etherscan-account-txlistinternal)

GET

List ERC-20 token transfers

ERC-20 transfers filtered by address, token contract or both.

[Open](#etherscan-account-tokentx)

GET

List ERC-721 (NFT) transfers

ERC-721 transfers filtered by address, NFT contract or both.

[Open](#etherscan-account-tokennfttx)

GET

List an address's ERC-20 holdings

Every ERC-20 token an address holds, with balances.

[Open](#etherscan-account-addresstokenbalance)

GET

Get token project info

Name, symbol, decimals, supply, website and social links of a token contract.

[Open](#etherscan-token-tokeninfo)

GET

List a token's holders

Current ERC-20 holders of a token with their balances.

[Open](#etherscan-token-tokenholderlist)

GET

Get an ERC-20 token's total supply

Amount of an ERC-20 token in circulation.

[Open](#etherscan-stats-tokensupply)

GET

Get a verified contract's source code

Source, compiler settings, ABI and proxy info of a verified contract.

[Open](#etherscan-contract-getsourcecode)

GET

Get a verified contract's ABI

The ABI of a verified contract, as a JSON string.

[Open](#etherscan-contract-getabi)

GET

Get event logs of an address

Event logs emitted by a contract within a block range.

[Open](#etherscan-logs-getlogs)

GET

Find the block at a timestamp

Block number mined closest before or after a Unix time.

[Open](#etherscan-block-getblocknobytime)

GET

Get gas price recommendations

Safe, proposed and fast gas prices plus the base fee.

[Open](#etherscan-gastracker-gasoracle)

GET

Get the native token's last price

Latest USD and BTC price of the chain's native token.

[Open](#etherscan-stats-ethprice)

### Get an address's native balance

GET

`/v2/api`

`etherscan.account.balance`

Native token (ETH, POL...) balance of one address.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`chainid` required</td><td>string</td><td>query</td><td>Chain ID: 1 Ethereum, 137 Polygon, 42161 Arbitrum, 8453 Base, 56 BNB Chain... (supported-chains page; some chains need a paid plan). Example `1`</td></tr>
    <tr><td>`module` required</td><td>string</td><td>query</td><td>Always account. One of `account` Example `account`</td></tr>
    <tr><td>`action` required</td><td>string</td><td>query</td><td>Always balance. One of `balance` Example `balance`</td></tr>
    <tr><td>`address` required</td><td>string</td><td>query</td><td>Address. Example `0xde0b295669a9fd93d5f28d9ec85e40f4cb697bae`</td></tr>
    <tr><td>`tag`</td><td>string</td><td>query</td><td>latest, or a hex block number within the last 128 blocks. Example `latest`</td></tr>
  </tbody>
</table>

[Vendor docs](https://docs.etherscan.io/api-reference/endpoint/balance.md) · Same job: [Alchemy](https://docs.webrouter.net/data-apis/alchemy.md#alchemy-token-balances), [GoldRush (formerly Covalent)](https://docs.webrouter.net/data-apis/goldrush.md#goldrush-balances-tokens), [Hyperliquid](https://docs.webrouter.net/data-apis/hyperliquid.md#hyperliquid-account-state), [mempool.space](https://docs.webrouter.net/data-apis/mempool-space.md#mempool-space-address-get), [Moralis](https://docs.webrouter.net/data-apis/moralis.md#moralis-wallet-tokens)

```python Python theme={null}
router.call_data_api("etherscan.account.balance", {'chainid': '1', 'module': 'account', 'action': 'balance', 'address': '0xde0b295669a9fd93d5f28d9ec85e40f4cb697bae', 'tag': 'latest'})
```

```text MCP theme={null}
call_data_api(endpoint="etherscan.account.balance", params={"chainid": "1", "module": "account", "action": "balance", "address": "0xde0b295669a9fd93d5f28d9ec85e40f4cb697bae", "tag": "latest"})
```

> [!NOTE]
>
> * Result is a string in wei; divide by 10^18.

### Get native balances of several addresses

GET

`/v2/api`

`etherscan.account.balancemulti`

Native token balances of up to 20 addresses in one call.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`chainid` required</td><td>string</td><td>query</td><td>Chain ID: 1 Ethereum, 137 Polygon, 42161 Arbitrum, 8453 Base, 56 BNB Chain... (supported-chains page; some chains need a paid plan). Example `1`</td></tr>
    <tr><td>`module` required</td><td>string</td><td>query</td><td>Always account. One of `account` Example `account`</td></tr>
    <tr><td>`action` required</td><td>string</td><td>query</td><td>Always balancemulti. One of `balancemulti` Example `balancemulti`</td></tr>
    <tr><td>`address` required</td><td>string</td><td>query</td><td>Comma-separated addresses, at most 20. Example `0xddbd2b932c763ba5b1b7ae3b362eac3e8d40121a,0x63a9975ba31b0b9626b34300f7f627147df1f526`</td></tr>
    <tr><td>`tag`</td><td>string</td><td>query</td><td>latest, or a hex block number within the last 128 blocks. Example `latest`</td></tr>
  </tbody>
</table>

[Vendor docs](https://docs.etherscan.io/api-reference/endpoint/balancemulti.md) · Same job: [Alchemy](https://docs.webrouter.net/data-apis/alchemy.md#alchemy-token-balances), [GoldRush (formerly Covalent)](https://docs.webrouter.net/data-apis/goldrush.md#goldrush-balances-tokens), [Hyperliquid](https://docs.webrouter.net/data-apis/hyperliquid.md#hyperliquid-account-state), [mempool.space](https://docs.webrouter.net/data-apis/mempool-space.md#mempool-space-address-get), [Moralis](https://docs.webrouter.net/data-apis/moralis.md#moralis-wallet-tokens)

```python Python theme={null}
router.call_data_api("etherscan.account.balancemulti", {'chainid': '1', 'module': 'account', 'action': 'balancemulti', 'address': '0xddbd2b932c763ba5b1b7ae3b362eac3e8d40121a,0x63a9975ba31b0b9626b34300f7f627147df1f526', 'tag': 'latest'})
```

```text MCP theme={null}
call_data_api(endpoint="etherscan.account.balancemulti", params={"chainid": "1", "module": "account", "action": "balancemulti", "address": "0xddbd2b932c763ba5b1b7ae3b362eac3e8d40121a,0x63a9975ba31b0b9626b34300f7f627147df1f526", "tag": "latest"})
```

> [!NOTE]
>
> * Balances are strings in wei.

### List an address's transactions

GET

`/v2/api`

`etherscan.account.txlist`

Normal (external) transactions sent from or to an address.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`chainid` required</td><td>string</td><td>query</td><td>Chain ID: 1 Ethereum, 137 Polygon, 42161 Arbitrum, 8453 Base, 56 BNB Chain... (supported-chains page; some chains need a paid plan). Example `1`</td></tr>
    <tr><td>`module` required</td><td>string</td><td>query</td><td>Always account. One of `account` Example `account`</td></tr>
    <tr><td>`action` required</td><td>string</td><td>query</td><td>Always txlist. One of `txlist` Example `txlist`</td></tr>
    <tr><td>`address` required</td><td>string</td><td>query</td><td>Address. Example `0xc5102fE9359FD9a28f877a67E36B0F050d81a3CC`</td></tr>
    <tr><td>`startblock`</td><td>integer</td><td>query</td><td>First block to search from. Example `0`</td></tr>
    <tr><td>`endblock`</td><td>integer</td><td>query</td><td>Last block to search to. Example `99999999`</td></tr>
    <tr><td>`page`</td><td>integer</td><td>query</td><td>Page number. Example `1`</td></tr>
    <tr><td>`offset`</td><td>integer</td><td>query</td><td>Records per page. Example `100`</td></tr>
    <tr><td>`sort`</td><td>string</td><td>query</td><td>asc (oldest first) or desc (latest first). One of `asc`, `desc` Example `desc`</td></tr>
  </tbody>
</table>

[Vendor docs](https://docs.etherscan.io/api-reference/endpoint/txlist.md) · Same job: [GoldRush (formerly Covalent)](https://docs.webrouter.net/data-apis/goldrush.md#goldrush-transactions-recent), [mempool.space](https://docs.webrouter.net/data-apis/mempool-space.md#mempool-space-address-txs), [Moralis](https://docs.webrouter.net/data-apis/moralis.md#moralis-wallet-history)

```python Python theme={null}
router.call_data_api("etherscan.account.txlist", {'chainid': '1', 'module': 'account', 'action': 'txlist', 'address': '0xc5102fE9359FD9a28f877a67E36B0F050d81a3CC', 'startblock': 0, 'endblock': 99999999, 'page': 1, 'offset': 100, 'sort': 'desc'})
```

```text MCP theme={null}
call_data_api(endpoint="etherscan.account.txlist", params={"chainid": "1", "module": "account", "action": "txlist", "address": "0xc5102fE9359FD9a28f877a67E36B0F050d81a3CC", "startblock": 0, "endblock": 99999999, "page": 1, "offset": 100, "sort": "desc"})
```

> [!NOTE]
>
> * value and gasPrice are wei strings; timeStamp is Unix seconds.
> * Page with page and offset; narrow with startblock/endblock for long histories.

### List an address's internal transactions

GET

`/v2/api`

`etherscan.account.txlistinternal`

Internal (contract-initiated) transfers involving an address.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`chainid` required</td><td>string</td><td>query</td><td>Chain ID: 1 Ethereum, 137 Polygon, 42161 Arbitrum, 8453 Base, 56 BNB Chain... (supported-chains page; some chains need a paid plan). Example `1`</td></tr>
    <tr><td>`module` required</td><td>string</td><td>query</td><td>Always account. One of `account` Example `account`</td></tr>
    <tr><td>`action` required</td><td>string</td><td>query</td><td>Always txlistinternal. One of `txlistinternal` Example `txlistinternal`</td></tr>
    <tr><td>`address` required</td><td>string</td><td>query</td><td>Address. Example `0x2c1ba59d6f58433fb1eaee7d20b26ed83bda51a3`</td></tr>
    <tr><td>`startblock`</td><td>integer</td><td>query</td><td>First block to search from. Example `0`</td></tr>
    <tr><td>`endblock`</td><td>integer</td><td>query</td><td>Last block to search to. Example `99999999`</td></tr>
    <tr><td>`page`</td><td>integer</td><td>query</td><td>Page number. Example `1`</td></tr>
    <tr><td>`offset`</td><td>integer</td><td>query</td><td>Records per page. Example `100`</td></tr>
    <tr><td>`sort`</td><td>string</td><td>query</td><td>asc (oldest first) or desc (latest first). One of `asc`, `desc` Example `desc`</td></tr>
  </tbody>
</table>

[Vendor docs](https://docs.etherscan.io/api-reference/endpoint/txlistinternal.md) · Same job: [GoldRush (formerly Covalent)](https://docs.webrouter.net/data-apis/goldrush.md#goldrush-transactions-recent), [mempool.space](https://docs.webrouter.net/data-apis/mempool-space.md#mempool-space-address-txs), [Moralis](https://docs.webrouter.net/data-apis/moralis.md#moralis-wallet-history)

```python Python theme={null}
router.call_data_api("etherscan.account.txlistinternal", {'chainid': '1', 'module': 'account', 'action': 'txlistinternal', 'address': '0x2c1ba59d6f58433fb1eaee7d20b26ed83bda51a3', 'startblock': 0, 'endblock': 99999999, 'page': 1, 'offset': 100, 'sort': 'desc'})
```

```text MCP theme={null}
call_data_api(endpoint="etherscan.account.txlistinternal", params={"chainid": "1", "module": "account", "action": "txlistinternal", "address": "0x2c1ba59d6f58433fb1eaee7d20b26ed83bda51a3", "startblock": 0, "endblock": 99999999, "page": 1, "offset": 100, "sort": "desc"})
```

> [!NOTE]
>
> * value is a wei string.

### List ERC-20 token transfers

GET

`/v2/api`

`etherscan.account.tokentx`

ERC-20 transfers filtered by address, token contract or both.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`chainid` required</td><td>string</td><td>query</td><td>Chain ID: 1 Ethereum, 137 Polygon, 42161 Arbitrum, 8453 Base, 56 BNB Chain... (supported-chains page; some chains need a paid plan). Example `1`</td></tr>
    <tr><td>`module` required</td><td>string</td><td>query</td><td>Always account. One of `account` Example `account`</td></tr>
    <tr><td>`action` required</td><td>string</td><td>query</td><td>Always tokentx. One of `tokentx` Example `tokentx`</td></tr>
    <tr><td>`address`</td><td>string</td><td>query</td><td>Account to filter by. Give address, contractaddress or both. Example `0x4e83362442b8d1bec281594cea3050c8eb01311c`</td></tr>
    <tr><td>`contractaddress`</td><td>string</td><td>query</td><td>Token contract to filter by. Example `0x9f8f72aa9304c8b593d555f12ef6589cc3a579a2`</td></tr>
    <tr><td>`startblock`</td><td>integer</td><td>query</td><td>First block to search from. Example `0`</td></tr>
    <tr><td>`endblock`</td><td>integer</td><td>query</td><td>Last block to search to. Example `99999999`</td></tr>
    <tr><td>`page`</td><td>integer</td><td>query</td><td>Page number. Example `1`</td></tr>
    <tr><td>`offset`</td><td>integer</td><td>query</td><td>Records per page. Example `100`</td></tr>
    <tr><td>`sort`</td><td>string</td><td>query</td><td>asc (oldest first) or desc (latest first). One of `asc`, `desc` Example `desc`</td></tr>
  </tbody>
</table>

[Vendor docs](https://docs.etherscan.io/api-reference/endpoint/tokentx.md) · Same job: [Alchemy](https://docs.webrouter.net/data-apis/alchemy.md#alchemy-transfers-list), [GoldRush (formerly Covalent)](https://docs.webrouter.net/data-apis/goldrush.md#goldrush-transfers-erc20), [Moralis](https://docs.webrouter.net/data-apis/moralis.md#moralis-wallet-erc20-transfers)

```python Python theme={null}
router.call_data_api("etherscan.account.tokentx", {'chainid': '1', 'module': 'account', 'action': 'tokentx', 'address': '0x4e83362442b8d1bec281594cea3050c8eb01311c', 'contractaddress': '0x9f8f72aa9304c8b593d555f12ef6589cc3a579a2', 'startblock': 0, 'endblock': 99999999, 'page': 1, 'offset': 100, 'sort': 'desc'})
```

```text MCP theme={null}
call_data_api(endpoint="etherscan.account.tokentx", params={"chainid": "1", "module": "account", "action": "tokentx", "address": "0x4e83362442b8d1bec281594cea3050c8eb01311c", "contractaddress": "0x9f8f72aa9304c8b593d555f12ef6589cc3a579a2", "startblock": 0, "endblock": 99999999, "page": 1, "offset": 100, "sort": "desc"})
```

> [!NOTE]
>
> * value is in the token's smallest unit; divide by 10^tokenDecimal (returned on each row).

### List ERC-721 (NFT) transfers

GET

`/v2/api`

`etherscan.account.tokennfttx`

ERC-721 transfers filtered by address, NFT contract or both.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`chainid` required</td><td>string</td><td>query</td><td>Chain ID: 1 Ethereum, 137 Polygon, 42161 Arbitrum, 8453 Base, 56 BNB Chain... (supported-chains page; some chains need a paid plan). Example `1`</td></tr>
    <tr><td>`module` required</td><td>string</td><td>query</td><td>Always account. One of `account` Example `account`</td></tr>
    <tr><td>`action` required</td><td>string</td><td>query</td><td>Always tokennfttx. One of `tokennfttx` Example `tokennfttx`</td></tr>
    <tr><td>`address`</td><td>string</td><td>query</td><td>Account to filter by. Give address, contractaddress or both. Example `0x6975be450864c02b4613023c2152ee0743572325`</td></tr>
    <tr><td>`contractaddress`</td><td>string</td><td>query</td><td>NFT contract to filter by. Example `0x06012c8cf97bead5deae237070f9587f8e7a266d`</td></tr>
    <tr><td>`startblock`</td><td>integer</td><td>query</td><td>First block to search from. Example `0`</td></tr>
    <tr><td>`endblock`</td><td>integer</td><td>query</td><td>Last block to search to. Example `99999999`</td></tr>
    <tr><td>`page`</td><td>integer</td><td>query</td><td>Page number. Example `1`</td></tr>
    <tr><td>`offset`</td><td>integer</td><td>query</td><td>Records per page. Example `100`</td></tr>
    <tr><td>`sort`</td><td>string</td><td>query</td><td>asc (oldest first) or desc (latest first). One of `asc`, `desc` Example `desc`</td></tr>
  </tbody>
</table>

[Vendor docs](https://docs.etherscan.io/api-reference/endpoint/tokennfttx.md) · Same job: [Alchemy](https://docs.webrouter.net/data-apis/alchemy.md#alchemy-transfers-list), [GoldRush (formerly Covalent)](https://docs.webrouter.net/data-apis/goldrush.md#goldrush-transfers-erc20), [Moralis](https://docs.webrouter.net/data-apis/moralis.md#moralis-wallet-erc20-transfers)

```python Python theme={null}
router.call_data_api("etherscan.account.tokennfttx", {'chainid': '1', 'module': 'account', 'action': 'tokennfttx', 'address': '0x6975be450864c02b4613023c2152ee0743572325', 'contractaddress': '0x06012c8cf97bead5deae237070f9587f8e7a266d', 'startblock': 0, 'endblock': 99999999, 'page': 1, 'offset': 100, 'sort': 'desc'})
```

```text MCP theme={null}
call_data_api(endpoint="etherscan.account.tokennfttx", params={"chainid": "1", "module": "account", "action": "tokennfttx", "address": "0x6975be450864c02b4613023c2152ee0743572325", "contractaddress": "0x06012c8cf97bead5deae237070f9587f8e7a266d", "startblock": 0, "endblock": 99999999, "page": 1, "offset": 100, "sort": "desc"})
```

### List an address's ERC-20 holdings

GET

`/v2/api`

`etherscan.account.addresstokenbalance`

Every ERC-20 token an address holds, with balances.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`chainid` required</td><td>string</td><td>query</td><td>Chain ID: 1 Ethereum, 137 Polygon, 42161 Arbitrum, 8453 Base, 56 BNB Chain... (supported-chains page; some chains need a paid plan). Example `1`</td></tr>
    <tr><td>`module` required</td><td>string</td><td>query</td><td>Always account. One of `account` Example `account`</td></tr>
    <tr><td>`action` required</td><td>string</td><td>query</td><td>Always addresstokenbalance. One of `addresstokenbalance` Example `addresstokenbalance`</td></tr>
    <tr><td>`address` required</td><td>string</td><td>query</td><td>Address. Example `0x983e3660c0bE01991785F80f266A84B911ab59b0`</td></tr>
    <tr><td>`page`</td><td>integer</td><td>query</td><td>Page number. Example `1`</td></tr>
    <tr><td>`offset`</td><td>integer</td><td>query</td><td>Records per page. Example `100`</td></tr>
  </tbody>
</table>

[Vendor docs](https://docs.etherscan.io/api-reference/endpoint/addresstokenbalance.md) · Same job: [Alchemy](https://docs.webrouter.net/data-apis/alchemy.md#alchemy-token-balances), [GoldRush (formerly Covalent)](https://docs.webrouter.net/data-apis/goldrush.md#goldrush-balances-tokens), [Hyperliquid](https://docs.webrouter.net/data-apis/hyperliquid.md#hyperliquid-account-state), [mempool.space](https://docs.webrouter.net/data-apis/mempool-space.md#mempool-space-address-get), [Moralis](https://docs.webrouter.net/data-apis/moralis.md#moralis-wallet-tokens)

```python Python theme={null}
router.call_data_api("etherscan.account.addresstokenbalance", {'chainid': '1', 'module': 'account', 'action': 'addresstokenbalance', 'address': '0x983e3660c0bE01991785F80f266A84B911ab59b0', 'page': 1, 'offset': 100})
```

```text MCP theme={null}
call_data_api(endpoint="etherscan.account.addresstokenbalance", params={"chainid": "1", "module": "account", "action": "addresstokenbalance", "address": "0x983e3660c0bE01991785F80f266A84B911ab59b0", "page": 1, "offset": 100})
```

> [!NOTE]
>
> * PRO endpoint: Standard plan or above.
> * Balances are in each token's smallest unit; divide by 10^TokenDivisor.

### Get token project info

GET

`/v2/api`

`etherscan.token.tokeninfo`

Name, symbol, decimals, supply, website and social links of a token contract.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`chainid` required</td><td>string</td><td>query</td><td>Chain ID: 1 Ethereum, 137 Polygon, 42161 Arbitrum, 8453 Base, 56 BNB Chain... (supported-chains page; some chains need a paid plan). Example `1`</td></tr>
    <tr><td>`module` required</td><td>string</td><td>query</td><td>Always token. One of `token` Example `token`</td></tr>
    <tr><td>`action` required</td><td>string</td><td>query</td><td>Always tokeninfo. One of `tokeninfo` Example `tokeninfo`</td></tr>
    <tr><td>`contractaddress` required</td><td>string</td><td>query</td><td>Token contract address. Example `0x0e3a2a1f2146d86a604adc220b4967a898d7fe07`</td></tr>
  </tbody>
</table>

[Vendor docs](https://docs.etherscan.io/api-reference/endpoint/tokeninfo.md) · Same job: [Alchemy](https://docs.webrouter.net/data-apis/alchemy.md#alchemy-token-metadata), [Coinbase Exchange](https://docs.webrouter.net/data-apis/coinbase-exchange.md#coinbase-exchange-currencies-list), [CryptoCompare](https://docs.webrouter.net/data-apis/cryptocompare.md#cryptocompare-asset-metadata), [Glassnode](https://docs.webrouter.net/data-apis/glassnode.md#glassnode-metadata-assets), [Moralis](https://docs.webrouter.net/data-apis/moralis.md#moralis-token-metadata)

```python Python theme={null}
router.call_data_api("etherscan.token.tokeninfo", {'chainid': '1', 'module': 'token', 'action': 'tokeninfo', 'contractaddress': '0x0e3a2a1f2146d86a604adc220b4967a898d7fe07'})
```

```text MCP theme={null}
call_data_api(endpoint="etherscan.token.tokeninfo", params={"chainid": "1", "module": "token", "action": "tokeninfo", "contractaddress": "0x0e3a2a1f2146d86a604adc220b4967a898d7fe07"})
```

> [!NOTE]
>
> * PRO endpoint: Standard plan or above.

### List a token's holders

GET

`/v2/api`

`etherscan.token.tokenholderlist`

Current ERC-20 holders of a token with their balances.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`chainid` required</td><td>string</td><td>query</td><td>Chain ID: 1 Ethereum, 137 Polygon, 42161 Arbitrum, 8453 Base, 56 BNB Chain... (supported-chains page; some chains need a paid plan). Example `1`</td></tr>
    <tr><td>`module` required</td><td>string</td><td>query</td><td>Always token. One of `token` Example `token`</td></tr>
    <tr><td>`action` required</td><td>string</td><td>query</td><td>Always tokenholderlist. One of `tokenholderlist` Example `tokenholderlist`</td></tr>
    <tr><td>`contractaddress` required</td><td>string</td><td>query</td><td>ERC-20 contract address. Example `0xaaaebe6fe48e54f431b0c390cfaf0b017d09d42d`</td></tr>
    <tr><td>`page`</td><td>integer</td><td>query</td><td>Page number. Example `1`</td></tr>
    <tr><td>`offset`</td><td>integer</td><td>query</td><td>Records per page. Example `100`</td></tr>
  </tbody>
</table>

[Vendor docs](https://docs.etherscan.io/api-reference/endpoint/tokenholderlist.md) · Same job: [Alchemy](https://docs.webrouter.net/data-apis/alchemy.md#alchemy-nft-owners-for-contract), [GoldRush (formerly Covalent)](https://docs.webrouter.net/data-apis/goldrush.md#goldrush-tokens-holders), [Moralis](https://docs.webrouter.net/data-apis/moralis.md#moralis-token-owners)

```python Python theme={null}
router.call_data_api("etherscan.token.tokenholderlist", {'chainid': '1', 'module': 'token', 'action': 'tokenholderlist', 'contractaddress': '0xaaaebe6fe48e54f431b0c390cfaf0b017d09d42d', 'page': 1, 'offset': 100})
```

```text MCP theme={null}
call_data_api(endpoint="etherscan.token.tokenholderlist", params={"chainid": "1", "module": "token", "action": "tokenholderlist", "contractaddress": "0xaaaebe6fe48e54f431b0c390cfaf0b017d09d42d", "page": 1, "offset": 100})
```

> [!NOTE]
>
> * PRO endpoint: Standard plan or above.
> * Quantities are in the token's smallest unit.

### Get an ERC-20 token's total supply

GET

`/v2/api`

`etherscan.stats.tokensupply`

Amount of an ERC-20 token in circulation.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`chainid` required</td><td>string</td><td>query</td><td>Chain ID: 1 Ethereum, 137 Polygon, 42161 Arbitrum, 8453 Base, 56 BNB Chain... (supported-chains page; some chains need a paid plan). Example `1`</td></tr>
    <tr><td>`module` required</td><td>string</td><td>query</td><td>Always stats. One of `stats` Example `stats`</td></tr>
    <tr><td>`action` required</td><td>string</td><td>query</td><td>Always tokensupply. One of `tokensupply` Example `tokensupply`</td></tr>
    <tr><td>`contractaddress` required</td><td>string</td><td>query</td><td>ERC-20 contract address. Example `0x57d90b64a1a57749b0f932f1a3395792e12e7055`</td></tr>
  </tbody>
</table>

[Vendor docs](https://docs.etherscan.io/api-reference/endpoint/tokensupply.md) · Same job: [Alchemy](https://docs.webrouter.net/data-apis/alchemy.md#alchemy-token-metadata), [Coinbase Exchange](https://docs.webrouter.net/data-apis/coinbase-exchange.md#coinbase-exchange-currencies-list), [CryptoCompare](https://docs.webrouter.net/data-apis/cryptocompare.md#cryptocompare-asset-metadata), [Glassnode](https://docs.webrouter.net/data-apis/glassnode.md#glassnode-metadata-assets), [Moralis](https://docs.webrouter.net/data-apis/moralis.md#moralis-token-metadata)

```python Python theme={null}
router.call_data_api("etherscan.stats.tokensupply", {'chainid': '1', 'module': 'stats', 'action': 'tokensupply', 'contractaddress': '0x57d90b64a1a57749b0f932f1a3395792e12e7055'})
```

```text MCP theme={null}
call_data_api(endpoint="etherscan.stats.tokensupply", params={"chainid": "1", "module": "stats", "action": "tokensupply", "contractaddress": "0x57d90b64a1a57749b0f932f1a3395792e12e7055"})
```

> [!NOTE]
>
> * Result is in the token's smallest unit; divide by 10^decimals.

### Get a verified contract's source code

GET

`/v2/api`

`etherscan.contract.getsourcecode`

Source, compiler settings, ABI and proxy info of a verified contract.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`chainid` required</td><td>string</td><td>query</td><td>Chain ID: 1 Ethereum, 137 Polygon, 42161 Arbitrum, 8453 Base, 56 BNB Chain... (supported-chains page; some chains need a paid plan). Example `1`</td></tr>
    <tr><td>`module` required</td><td>string</td><td>query</td><td>Always contract. One of `contract` Example `contract`</td></tr>
    <tr><td>`action` required</td><td>string</td><td>query</td><td>Always getsourcecode. One of `getsourcecode` Example `getsourcecode`</td></tr>
    <tr><td>`address` required</td><td>string</td><td>query</td><td>Contract address. Example `0xBB9bc244D798123fDe783fCc1C72d3Bb8C189413`</td></tr>
  </tbody>
</table>

[Vendor docs](https://docs.etherscan.io/api-reference/endpoint/getsourcecode.md)

```python Python theme={null}
router.call_data_api("etherscan.contract.getsourcecode", {'chainid': '1', 'module': 'contract', 'action': 'getsourcecode', 'address': '0xBB9bc244D798123fDe783fCc1C72d3Bb8C189413'})
```

```text MCP theme={null}
call_data_api(endpoint="etherscan.contract.getsourcecode", params={"chainid": "1", "module": "contract", "action": "getsourcecode", "address": "0xBB9bc244D798123fDe783fCc1C72d3Bb8C189413"})
```

> [!NOTE]
>
> * Available on every chain and every plan, the free tier included.

### Get a verified contract's ABI

GET

`/v2/api`

`etherscan.contract.getabi`

The ABI of a verified contract, as a JSON string.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`chainid` required</td><td>string</td><td>query</td><td>Chain ID: 1 Ethereum, 137 Polygon, 42161 Arbitrum, 8453 Base, 56 BNB Chain... (supported-chains page; some chains need a paid plan). Example `1`</td></tr>
    <tr><td>`module` required</td><td>string</td><td>query</td><td>Always contract. One of `contract` Example `contract`</td></tr>
    <tr><td>`action` required</td><td>string</td><td>query</td><td>Always getabi. One of `getabi` Example `getabi`</td></tr>
    <tr><td>`address` required</td><td>string</td><td>query</td><td>Contract address. Example `0xBB9bc244D798123fDe783fCc1C72d3Bb8C189413`</td></tr>
  </tbody>
</table>

[Vendor docs](https://docs.etherscan.io/api-reference/endpoint/getabi.md)

```python Python theme={null}
router.call_data_api("etherscan.contract.getabi", {'chainid': '1', 'module': 'contract', 'action': 'getabi', 'address': '0xBB9bc244D798123fDe783fCc1C72d3Bb8C189413'})
```

```text MCP theme={null}
call_data_api(endpoint="etherscan.contract.getabi", params={"chainid": "1", "module": "contract", "action": "getabi", "address": "0xBB9bc244D798123fDe783fCc1C72d3Bb8C189413"})
```

> [!NOTE]
>
> * result is the ABI as a JSON-encoded string: parse it again.

### Get event logs of an address

GET

`/v2/api`

`etherscan.logs.getlogs`

Event logs emitted by a contract within a block range.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`chainid` required</td><td>string</td><td>query</td><td>Chain ID: 1 Ethereum, 137 Polygon, 42161 Arbitrum, 8453 Base, 56 BNB Chain... (supported-chains page; some chains need a paid plan). Example `1`</td></tr>
    <tr><td>`module` required</td><td>string</td><td>query</td><td>Always logs. One of `logs` Example `logs`</td></tr>
    <tr><td>`action` required</td><td>string</td><td>query</td><td>Always getLogs. One of `getLogs` Example `getLogs`</td></tr>
    <tr><td>`address` required</td><td>string</td><td>query</td><td>Contract address. Example `0xbd3531da5cf5857e7cfaa92426877b022e612cf8`</td></tr>
    <tr><td>`fromBlock` required</td><td>integer</td><td>query</td><td>First block. Example `12878196`</td></tr>
    <tr><td>`toBlock` required</td><td>integer</td><td>query</td><td>Last block. Example `12878196`</td></tr>
    <tr><td>`page`</td><td>integer</td><td>query</td><td>Page number. Example `1`</td></tr>
    <tr><td>`offset`</td><td>integer</td><td>query</td><td>Records per page. Example `100`</td></tr>
  </tbody>
</table>

[Vendor docs](https://docs.etherscan.io/api-reference/endpoint/getlogs.md)

```python Python theme={null}
router.call_data_api("etherscan.logs.getlogs", {'chainid': '1', 'module': 'logs', 'action': 'getLogs', 'address': '0xbd3531da5cf5857e7cfaa92426877b022e612cf8', 'fromBlock': 12878196, 'toBlock': 12878196, 'page': 1, 'offset': 100})
```

```text MCP theme={null}
call_data_api(endpoint="etherscan.logs.getlogs", params={"chainid": "1", "module": "logs", "action": "getLogs", "address": "0xbd3531da5cf5857e7cfaa92426877b022e612cf8", "fromBlock": 12878196, "toBlock": 12878196, "page": 1, "offset": 100})
```

### Find the block at a timestamp

GET

`/v2/api`

`etherscan.block.getblocknobytime`

Block number mined closest before or after a Unix time.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`chainid` required</td><td>string</td><td>query</td><td>Chain ID: 1 Ethereum, 137 Polygon, 42161 Arbitrum, 8453 Base, 56 BNB Chain... (supported-chains page; some chains need a paid plan). Example `1`</td></tr>
    <tr><td>`module` required</td><td>string</td><td>query</td><td>Always block. One of `block` Example `block`</td></tr>
    <tr><td>`action` required</td><td>string</td><td>query</td><td>Always getblocknobytime. One of `getblocknobytime` Example `getblocknobytime`</td></tr>
    <tr><td>`timestamp` required</td><td>integer</td><td>query</td><td>Unix time, seconds. Example `1578638524`</td></tr>
    <tr><td>`closest` required</td><td>string</td><td>query</td><td>before or after. One of `before`, `after` Example `before`</td></tr>
  </tbody>
</table>

[Vendor docs](https://docs.etherscan.io/api-reference/endpoint/getblocknobytime.md) · Same job: [mempool.space](https://docs.webrouter.net/data-apis/mempool-space.md#mempool-space-blocks-list)

```python Python theme={null}
router.call_data_api("etherscan.block.getblocknobytime", {'chainid': '1', 'module': 'block', 'action': 'getblocknobytime', 'timestamp': 1578638524, 'closest': 'before'})
```

```text MCP theme={null}
call_data_api(endpoint="etherscan.block.getblocknobytime", params={"chainid": "1", "module": "block", "action": "getblocknobytime", "timestamp": 1578638524, "closest": "before"})
```

### Get gas price recommendations

GET

`/v2/api`

`etherscan.gastracker.gasoracle`

Safe, proposed and fast gas prices plus the base fee.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`chainid` required</td><td>string</td><td>query</td><td>Chain ID: 1 Ethereum, 137 Polygon, 42161 Arbitrum, 8453 Base, 56 BNB Chain... (supported-chains page; some chains need a paid plan). Example `1`</td></tr>
    <tr><td>`module` required</td><td>string</td><td>query</td><td>Always gastracker. One of `gastracker` Example `gastracker`</td></tr>
    <tr><td>`action` required</td><td>string</td><td>query</td><td>Always gasoracle. One of `gasoracle` Example `gasoracle`</td></tr>
  </tbody>
</table>

[Vendor docs](https://docs.etherscan.io/api-reference/endpoint/gasoracle.md) · Same job: [mempool.space](https://docs.webrouter.net/data-apis/mempool-space.md#mempool-space-fees-recommended)

```python Python theme={null}
router.call_data_api("etherscan.gastracker.gasoracle", {'chainid': '1', 'module': 'gastracker', 'action': 'gasoracle'})
```

```text MCP theme={null}
call_data_api(endpoint="etherscan.gastracker.gasoracle", params={"chainid": "1", "module": "gastracker", "action": "gasoracle"})
```

> [!NOTE]
>
> * Prices are in gwei.

### Get the native token's last price

GET

`/v2/api`

`etherscan.stats.ethprice`

Latest USD and BTC price of the chain's native token.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`chainid` required</td><td>string</td><td>query</td><td>Chain ID: 1 Ethereum, 137 Polygon, 42161 Arbitrum, 8453 Base, 56 BNB Chain... (supported-chains page; some chains need a paid plan). Example `1`</td></tr>
    <tr><td>`module` required</td><td>string</td><td>query</td><td>Always stats. One of `stats` Example `stats`</td></tr>
    <tr><td>`action` required</td><td>string</td><td>query</td><td>Always ethprice. One of `ethprice` Example `ethprice`</td></tr>
  </tbody>
</table>

[Vendor docs](https://docs.etherscan.io/api-reference/endpoint/ethprice.md) · Same job: [Alpha Vantage](https://docs.webrouter.net/data-apis/alphavantage.md#alphavantage-crypto-daily), [Binance](https://docs.webrouter.net/data-apis/binance.md#binance-ticker-price), [Coinbase Exchange](https://docs.webrouter.net/data-apis/coinbase-exchange.md#coinbase-exchange-ticker-get), [CoinGecko](https://docs.webrouter.net/data-apis/coingecko.md#coingecko-price-simple), [CoinMarketCap](https://docs.webrouter.net/data-apis/coinmarketcap.md#coinmarketcap-cryptocurrency-listings-latest), [CryptoCompare](https://docs.webrouter.net/data-apis/cryptocompare.md#cryptocompare-index-latest-tick)

```python Python theme={null}
router.call_data_api("etherscan.stats.ethprice", {'chainid': '1', 'module': 'stats', 'action': 'ethprice'})
```

```text MCP theme={null}
call_data_api(endpoint="etherscan.stats.ethprice", params={"chainid": "1", "module": "stats", "action": "ethprice"})
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.