chain_bytecode_compare
Contract bytecode compare (clone, fork and proxy-aware, 5 EVM chains) — Compare the deployed runtime bytecode of two contracts on the same or different chains (ethereum, base, arbitrum, optimism, polygon). Verdict IDENTICAL / SAME_CODE_DIFFERENT_METADATA / SAME_LOGIC_DIFFERENT_CONSTANTS / NEAR_IDENTICAL / SIMILAR / DIFFERENT with an opcode similarity score, code hashes, compiler metadata (solc version, ipfs/bzzr hash kind) and function-selector overlap. Follows EIP-1167, EIP-1967 and ZeppelinOS proxies (e.g. Circle FiatTokenProxy) and compares the implementation code that actually runs. Use it to spot clones and forks, confirm a bridged token runs the canonical code, or check what an upgrade changed. a= and b= required; chain= (default ethereum) and chain_b= for a cross-chain compare. 422 if either address has no code. Price: $0.003 USDC (Base, via x402).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"chain": "<chain>",
"a": "<a>",
"b": "<b>"
},
"name": "chain_bytecode_compare"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| a | Yes | 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48 | |
| b | Yes | 0x1aBaEA1f7C830bD89Acc67eC4af516284b1bC33c | |
| chain | Yes | ethereum |