# Contracts running exactly the same code

[Open the contract on its entity page →](https://tracefast.xyz/entity/0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48)

Every contract whose runtime code hashes to `codeHash`, the hash of this contract's current code — the same deployed code at other addresses — by address ascending, with `contractCount`, the size of the whole list. The same code does not mean the same owner or the same deployer: a factory, a template or a copied contract produces identical code for unrelated parties, and two contracts with the same code can hold different state. Identical code is byte for byte; code that differs only in its metadata or constructor-set values is not listed (compare `fingerprint` on the bytecode method). For an account delegated by EIP-7702 the shared code is the delegation, so the list is the accounts delegated to the same contract. The list is updated once a day: a contract deployed, or whose code changed, since then — this one included — is missing from it, or still listed under its earlier code, until the next update. An address with no indexed code answers 404. Continue with `nextCursor`.

```
GET https://tracefast.xyz/api/v1/chains/1/contracts/{address}/clones
```

| Parameter | In | Type | Notes |
|---|---|---|---|
| `address` | path | string | The contract, `0x` + 40 hex, any case. |
| `limit` | query | integer, optional | 1 to 100, default 25. |
| `cursor` | query | string, optional | `nextCursor` of the previous page. Opaque, and valid only for this method and this code. |

**Access** — an [API key](/api/authentication) on the **Investigation** plan or higher ([plans](/api/authentication#plans)), or no key at all: pay per call with [x402](/api/x402) at the same path on `https://mpp.tracefast.xyz/api/v1`, at the price its `402` states. As a tool for AI agents: `get_contract_clones` on the [MCP server](/api/mcp-server). **Stable** — see [stability](/api/conventions#stability).

`chains/1` is a literal: other chain ids answer `404 chain_not_supported`. An unknown query parameter is refused rather than ignored.

## Response

`200 application/json`, USDC. Lists in the example are cut to two entries.

```json
{
  "data": {
    "chainId": 1,
    "address": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
    "codeHash": "0xd80d4b7c890cb9d6a4893e6b52bc34b56b25335cb13716e0d1d31383e6b41505",
    "contractCount": 12,
    "contracts": [
      {
        "address": "0x121689f0f3db379493db30593bf3058b408bec9b",
        "blockNumber": 15509115
      },
      {
        "address": "0x14039994048f873dc5f86a32075669652b9f0fa7",
        "blockNumber": 9079551
      }
    ],
    "nextCursor": "AVsiMTQwMzk5OTQwNDhmODczZGM1Zjg2YTMyMDc1NjY5NjUyYjlmMGZhNyJdNuVa_fRyWFDyUkmuy4wzXw"
  },
  "meta": {
    "chain": "ethereum",
    "timestamp": 1794918331848,
    "cached": true,
    "docs": "https://docs.tracefast.xyz/api/contract-clones"
  }
}
```

### `data`

| Field | Meaning |
|---|---|
| `address` | The contract asked about, lowercase and `0x`-prefixed. |
| `chainId` | Chain id. `1` is Ethereum mainnet. |
| `codeHash` | Keccak-256 hash of its current runtime code, `0x`-prefixed: what every listed contract shares. |
| `contractCount` | How many contracts the list holds in all, across every page. |
| `contracts` | This page, by address ascending. |
| `nextCursor` | Cursor of the next page. Absent on the last page. |

### `data.contracts[]`

| Field | Meaning |
|---|---|
| `address` | The contract, lowercase and `0x`-prefixed. |
| `blockNumber` | Block height at which this contract's code was set. |

`meta` is the same envelope on every method — see [conventions](/api/conventions#meta).

## Errors

| Status | When |
|---|---|
| 400 | `bad_request`: a malformed address (`reason: address_invalid`), `limit` outside 1 to 100, or an unknown query parameter; `invalid_cursor` |
| 404 | `not_found`: no contract code is indexed at the address; `chain_not_supported`, or an unknown path |
| 422 | `block_not_available` (`reason: coverage_gap`): the address cannot be confirmed absent right now |

Malformed input, unknown parameters and the key check's `401`/`403`/`429`/`503` are the same for every method — see [conventions](/api/conventions#errors) and [API keys](/api/authentication#when-a-key-is-refused).

## Related pages

* [One contract](/api/contract)
* [Bytecode](/api/contract-bytecode)
* [Function selectors](/api/contract-selectors)
* [Disassembly](/api/contract-disassembly)
* [All API methods](/api/methods) — every method on one page
* [Conventions](/api/conventions) — requests, responses, errors and pagination
