> ## 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.

# Alchemy

> Blockchain data APIs across EVM networks: ERC-20 balances and metadata, asset transfer history, and NFT ownership and metadata.

![](https://mintcdn.com/webrouter/Wx0iBZkUGX_VAFTN/logo/data-apis/alchemy.svg?fit=max\&auto=format\&n=Wx0iBZkUGX_VAFTN\&q=85\&s=fbb4855ea24c1e12091a9c3616db2cae)

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

Needs&#x20;

`ALCHEMY_API_KEY`

Endpoints

8

Auth

Key in header

[Vendor docs](https://www.alchemy.com/docs/data)

&#x20;·&#x20;

[Pricing](https://www.alchemy.com/pricing)

## Setup

| Variable | | What it is |
| - | - | - |
| `ALCHEMY_API_KEY` | required | An Alchemy API key (dashboard.alchemy.com). Sent as an Authorization Bearer header rather than in the URL. |
| `ALCHEMY_NETWORK` | optional | Network the token, transfer and NFT calls read, e.g. eth-mainnet, base-mainnet, polygon-mainnet. Default `eth-mainnet`. One of `eth-mainnet`, `eth-sepolia`, `base-mainnet`, `polygon-mainnet`, `arb-mainnet`, `opt-mainnet`, `bnb-mainnet`, `avax-mainnet`, `zksync-mainnet`, `linea-mainnet`, `worldchain-mainnet`, `scroll-mainnet`, `zora-mainnet`, `mantle-mainnet`, `unichain-mainnet`, `abstract-mainnet`, `ink-mainnet`. |

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

## Notes

* Usage is billed in compute units per call (listed per endpoint); throughput is capped per plan.
* Token, transfer and NFT calls go to the network set in ALCHEMY\_NETWORK; not every API runs on every network.
* JSON-RPC calls (token and transfer) answer with result or error inside a 200; check error.
* The Prices API is not in this entry: it takes the key in the URL path (/prices/v1/\{apiKey}/...), and this entry sends the key only in the Authorization header.

## Endpoints

POST

Get an address's ERC-20 balances

ERC-20 balances of a wallet on the configured network.

[Open](#alchemy-token-balances)

POST

Get ERC-20 token metadata

Name, symbol, decimals and logo of a token contract.

[Open](#alchemy-token-metadata)

POST

List asset transfers

Historical native, internal, ERC-20, ERC-721 and ERC-1155 transfers from or to addresses.

[Open](#alchemy-transfers-list)

GET

List NFTs owned by an address

Every NFT a wallet holds on the configured network, with metadata.

[Open](#alchemy-nft-for-owner)

GET

List the NFTs in a contract

Tokens of an NFT collection with metadata.

[Open](#alchemy-nft-for-contract)

GET

Get one NFT's metadata

Name, image, attributes, token URI and contract details of one token.

[Open](#alchemy-nft-metadata)

GET

Get an NFT collection's metadata

Collection name, symbol, supply, token type and deployer; OpenSea data on ETH and Polygon only.

[Open](#alchemy-nft-contract-metadata)

GET

List an NFT collection's owners

Addresses holding any token of a contract, optionally with balances per token.

[Open](#alchemy-nft-owners-for-contract)

### Get an address's ERC-20 balances

POST

`/v2`

`alchemy.token.balances`

ERC-20 balances of a wallet on the configured network.

Input

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

      <th>
        Type
      </th>

      <th>
        In
      </th>

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

  <tbody>
    <tr><td>`jsonrpc` required</td><td>string</td><td>body</td><td>Always 2.0. One of `2.0` Example `2.0`</td></tr>
    <tr><td>`id` required</td><td>integer</td><td>body</td><td>Request id; always 1. One of `1` Example `1`</td></tr>
    <tr><td>`method` required</td><td>string</td><td>body</td><td>Always alchemy\_getTokenBalances. One of `alchemy_getTokenBalances` Example `alchemy_getTokenBalances`</td></tr>
    <tr><td>`params` required</td><td>array</td><td>body</td><td>\[address, tokenSpec, options]: tokenSpec is "erc20" (every ERC-20 held), "NATIVE\_TOKEN" or a list of token contracts; options is \{pageKey, maxCount}. Example `["0x0000000000000000000000000000000000000001", "erc20"]`</td></tr>
  </tbody>
</table>

[Vendor docs](https://www.alchemy.com/docs/data/token-api/token-api-endpoints/alchemy-get-token-balances) · Same job: [Etherscan](https://docs.webrouter.net/data-apis/etherscan.md#etherscan-account-balance), [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("alchemy.token.balances", {'jsonrpc': '2.0', 'id': 1, 'method': 'alchemy_getTokenBalances', 'params': ['0x0000000000000000000000000000000000000001', 'erc20']})
```

```text MCP theme={null}
call_data_api(endpoint="alchemy.token.balances", params={"jsonrpc": "2.0", "id": 1, "method": "alchemy_getTokenBalances", "params": ["0x0000000000000000000000000000000000000001", "erc20"]})
```

> [!NOTE]
>
> * A read sent as a JSON-RPC POST.
> * 20 compute units.
> * tokenBalance is a hex string in the token's smallest unit; get decimals from alchemy.token.metadata.

### Get ERC-20 token metadata

POST

`/v2`

`alchemy.token.metadata`

Name, symbol, decimals and logo 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>`jsonrpc` required</td><td>string</td><td>body</td><td>Always 2.0. One of `2.0` Example `2.0`</td></tr>
    <tr><td>`id` required</td><td>integer</td><td>body</td><td>Request id; always 1. One of `1` Example `1`</td></tr>
    <tr><td>`method` required</td><td>string</td><td>body</td><td>Always alchemy\_getTokenMetadata. One of `alchemy_getTokenMetadata` Example `alchemy_getTokenMetadata`</td></tr>
    <tr><td>`params` required</td><td>array</td><td>body</td><td>\[contractAddress]. Example `["0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48"]`</td></tr>
  </tbody>
</table>

[Vendor docs](https://www.alchemy.com/docs/data/token-api/token-api-endpoints/alchemy-get-token-metadata) · Same job: [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), [Etherscan](https://docs.webrouter.net/data-apis/etherscan.md#etherscan-token-tokeninfo), [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("alchemy.token.metadata", {'jsonrpc': '2.0', 'id': 1, 'method': 'alchemy_getTokenMetadata', 'params': ['0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48']})
```

```text MCP theme={null}
call_data_api(endpoint="alchemy.token.metadata", params={"jsonrpc": "2.0", "id": 1, "method": "alchemy_getTokenMetadata", "params": ["0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48"]})
```

> [!NOTE]
>
> * A read sent as a JSON-RPC POST.
> * 10 compute units.

### List asset transfers

POST

`/v2`

`alchemy.transfers.list`

Historical native, internal, ERC-20, ERC-721 and ERC-1155 transfers from or to addresses.

Input

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

      <th>
        Type
      </th>

      <th>
        In
      </th>

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

  <tbody>
    <tr><td>`jsonrpc` required</td><td>string</td><td>body</td><td>Always 2.0. One of `2.0` Example `2.0`</td></tr>
    <tr><td>`id` required</td><td>integer</td><td>body</td><td>Request id; always 1. One of `1` Example `1`</td></tr>
    <tr><td>`method` required</td><td>string</td><td>body</td><td>Always alchemy\_getAssetTransfers. One of `alchemy_getAssetTransfers` Example `alchemy_getAssetTransfers`</td></tr>
    <tr><td>`params` required</td><td>array</td><td>body</td><td>\[\{category (required list: external, internal, erc20, erc721, erc1155, specialnft), fromBlock, toBlock, fromAddress, toAddress, contractAddresses, excludeZeroValue, order (asc or desc), withMetadata, maxCount (hex, default 0x3e8), pageKey}]. Example `[{"fromBlock": "0x0", "toAddress": "0x5c43B1eD97e52d009611D89b74fA829FE4ac56b1", "category": ["erc721", "erc1155"], "withMetadata": true, "order": "desc"}]`</td></tr>
  </tbody>
</table>

[Vendor docs](https://www.alchemy.com/docs/data/transfers-api/transfers-endpoints/alchemy-get-asset-transfers) · Same job: [Etherscan](https://docs.webrouter.net/data-apis/etherscan.md#etherscan-account-tokentx), [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("alchemy.transfers.list", {'jsonrpc': '2.0', 'id': 1, 'method': 'alchemy_getAssetTransfers', 'params': [{'fromBlock': '0x0', 'toAddress': '0x5c43B1eD97e52d009611D89b74fA829FE4ac56b1', 'category': ['erc721', 'erc1155'], 'withMetadata': True, 'order': 'desc'}]})
```

```text MCP theme={null}
call_data_api(endpoint="alchemy.transfers.list", params={"jsonrpc": "2.0", "id": 1, "method": "alchemy_getAssetTransfers", "params": [{"fromBlock": "0x0", "toAddress": "0x5c43B1eD97e52d009611D89b74fA829FE4ac56b1", "category": ["erc721", "erc1155"], "withMetadata": true, "order": "desc"}]})
```

> [!NOTE]
>
> * A read sent as a JSON-RPC POST.
> * Blocks and maxCount are hex strings; maxCount defaults to 0x3e8 (1000) per page; pass the returned pageKey for the next.
> * internal transfers exist only on Ethereum, Polygon, Base and Arc mainnets; withMetadata (block timestamps) only on ETH, Base, Polygon, Arbitrum and Optimism.
> * value is null for ERC-721 transfers and tokens of unknown decimals; rawContract carries the raw amount.

### List NFTs owned by an address

GET

`/nft/v3/getNFTsForOwner`

`alchemy.nft.for_owner`

Every NFT a wallet holds on the configured network, with metadata.

Input

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

      <th>
        Type
      </th>

      <th>
        In
      </th>

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

  <tbody>
    <tr><td>`owner` required</td><td>string</td><td>query</td><td>Owner address (ENS name on Ethereum mainnet). Example `0x0000000000000000000000000000000000000001`</td></tr>

    <tr>
      <td>
        `contractAddresses`
      </td>

      <td>
        array
      </td>

      <td>
        query
      </td>

      <td>
        Only these NFT contracts, at most 45.
      </td>
    </tr>

    <tr>
      <td>
        `withMetadata`
      </td>

      <td>
        boolean
      </td>

      <td>
        query
      </td>

      <td>
        Include metadata; default true. false is smaller and faster.
      </td>
    </tr>

    <tr><td>`orderBy`</td><td>string</td><td>query</td><td>transferTime: newest received first (only on some networks). Unset: by contract and token ID. One of `transferTime`</td></tr>

    <tr>
      <td>
        `excludeFilters`
      </td>

      <td>
        array
      </td>

      <td>
        query
      </td>

      <td>
        Drop SPAM and/or AIRDROPS. Not with includeFilters.
      </td>
    </tr>

    <tr><td>`spamConfidenceLevel`</td><td>string</td><td>query</td><td>Spam level filtered out: VERY\_HIGH, HIGH, MEDIUM or LOW. One of `VERY_HIGH`, `HIGH`, `MEDIUM`, `LOW`</td></tr>

    <tr>
      <td>
        `tokenUriTimeoutInMs`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Milliseconds to wait for the metadata host; 0 reads only the cache.
      </td>
    </tr>

    <tr>
      <td>
        `pageKey`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        pageKey from the previous page.
      </td>
    </tr>

    <tr>
      <td>
        `pageSize`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        NFTs per page, at most 100 (default).
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://www.alchemy.com/docs/reference/nft-api-endpoints/nft-api-endpoints/nft-ownership-endpoints/get-nf-ts-for-owner-v-3) · Same job: [GoldRush (formerly Covalent)](https://docs.webrouter.net/data-apis/goldrush.md#goldrush-nft-balances), [Moralis](https://docs.webrouter.net/data-apis/moralis.md#moralis-wallet-nfts)

```python Python theme={null}
router.call_data_api("alchemy.nft.for_owner", {'owner': '0x0000000000000000000000000000000000000001'})
```

```text MCP theme={null}
call_data_api(endpoint="alchemy.nft.for_owner", params={"owner": "0x0000000000000000000000000000000000000001"})
```

### List the NFTs in a contract

GET

`/nft/v3/getNFTsForContract`

`alchemy.nft.for_contract`

Tokens of an NFT collection with metadata.

Input

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

      <th>
        Type
      </th>

      <th>
        In
      </th>

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

  <tbody>
    <tr><td>`contractAddress` required</td><td>string</td><td>query</td><td>ERC-721 or ERC-1155 contract. Example `0xe785E82358879F061BC3dcAC6f0444462D4b5330`</td></tr>

    <tr>
      <td>
        `withMetadata`
      </td>

      <td>
        boolean
      </td>

      <td>
        query
      </td>

      <td>
        Include metadata; default true.
      </td>
    </tr>

    <tr>
      <td>
        `startToken`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Token ID to start from (hex or decimal), for paging.
      </td>
    </tr>

    <tr>
      <td>
        `limit`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        NFTs to return; default 100.
      </td>
    </tr>

    <tr>
      <td>
        `tokenUriTimeoutInMs`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Milliseconds to wait for the metadata host; 0 reads only the cache.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://www.alchemy.com/docs/reference/nft-api-endpoints/nft-api-endpoints/nft-metadata-endpoints/get-nf-ts-for-contract-v-3) · Same job: [Moralis](https://docs.webrouter.net/data-apis/moralis.md#moralis-nft-floor-price)

```python Python theme={null}
router.call_data_api("alchemy.nft.for_contract", {'contractAddress': '0xe785E82358879F061BC3dcAC6f0444462D4b5330'})
```

```text MCP theme={null}
call_data_api(endpoint="alchemy.nft.for_contract", params={"contractAddress": "0xe785E82358879F061BC3dcAC6f0444462D4b5330"})
```

> [!NOTE]
>
> * Page with startToken: pass the pageKey from the previous response as startToken.

### Get one NFT's metadata

GET

`/nft/v3/getNFTMetadata`

`alchemy.nft.metadata`

Name, image, attributes, token URI and contract details of one token.

Input

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

      <th>
        Type
      </th>

      <th>
        In
      </th>

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

  <tbody>
    <tr><td>`contractAddress` required</td><td>string</td><td>query</td><td>NFT contract. Example `0xe785E82358879F061BC3dcAC6f0444462D4b5330`</td></tr>
    <tr><td>`tokenId` required</td><td>string</td><td>query</td><td>Token ID, hex or decimal. Example `44`</td></tr>
    <tr><td>`tokenType`</td><td>string</td><td>query</td><td>ERC721 or ERC1155; faster when given. One of `ERC721`, `ERC1155`</td></tr>

    <tr>
      <td>
        `tokenUriTimeoutInMs`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Milliseconds to wait for the metadata host; 0 reads only the cache.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://www.alchemy.com/docs/reference/nft-api-endpoints/nft-api-endpoints/nft-metadata-endpoints/get-nft-metadata-v-3) · Same job: [Moralis](https://docs.webrouter.net/data-apis/moralis.md#moralis-nft-metadata)

```python Python theme={null}
router.call_data_api("alchemy.nft.metadata", {'contractAddress': '0xe785E82358879F061BC3dcAC6f0444462D4b5330', 'tokenId': '44'})
```

```text MCP theme={null}
call_data_api(endpoint="alchemy.nft.metadata", params={"contractAddress": "0xe785E82358879F061BC3dcAC6f0444462D4b5330", "tokenId": "44"})
```

### Get an NFT collection's metadata

GET

`/nft/v3/getContractMetadata`

`alchemy.nft.contract_metadata`

Collection name, symbol, supply, token type and deployer; OpenSea data on ETH and Polygon only.

Input

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

      <th>
        Type
      </th>

      <th>
        In
      </th>

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

  <tbody>
    <tr><td>`contractAddress` required</td><td>string</td><td>query</td><td>NFT contract. Example `0xe785E82358879F061BC3dcAC6f0444462D4b5330`</td></tr>
  </tbody>
</table>

[Vendor docs](https://www.alchemy.com/docs/reference/nft-api-endpoints/nft-api-endpoints/nft-metadata-endpoints/get-contract-metadata-v-3) · Same job: [Moralis](https://docs.webrouter.net/data-apis/moralis.md#moralis-nft-floor-price)

```python Python theme={null}
router.call_data_api("alchemy.nft.contract_metadata", {'contractAddress': '0xe785E82358879F061BC3dcAC6f0444462D4b5330'})
```

```text MCP theme={null}
call_data_api(endpoint="alchemy.nft.contract_metadata", params={"contractAddress": "0xe785E82358879F061BC3dcAC6f0444462D4b5330"})
```

### List an NFT collection's owners

GET

`/nft/v3/getOwnersForContract`

`alchemy.nft.owners_for_contract`

Addresses holding any token of a contract, optionally with balances per token.

Input

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

      <th>
        Type
      </th>

      <th>
        In
      </th>

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

  <tbody>
    <tr><td>`contractAddress` required</td><td>string</td><td>query</td><td>NFT contract. Example `0x495f947276749ce646f68ac8c248420045cb7b5e`</td></tr>

    <tr>
      <td>
        `withTokenBalances`
      </td>

      <td>
        boolean
      </td>

      <td>
        query
      </td>

      <td>
        Add each owner's balance per token ID; default false.
      </td>
    </tr>

    <tr>
      <td>
        `pageKey`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Only for contracts with more than 50,000 owners: pageKey from the previous page.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://www.alchemy.com/docs/reference/nft-api-endpoints/nft-api-endpoints/nft-ownership-endpoints/get-owners-for-contract-v-3) · Same job: [Etherscan](https://docs.webrouter.net/data-apis/etherscan.md#etherscan-token-tokenholderlist), [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("alchemy.nft.owners_for_contract", {'contractAddress': '0x495f947276749ce646f68ac8c248420045cb7b5e'})
```

```text MCP theme={null}
call_data_api(endpoint="alchemy.nft.owners_for_contract", params={"contractAddress": "0x495f947276749ce646f68ac8c248420045cb7b5e"})
```


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