EVM code
evm_codeUse when you must know whether an address is a contract on Base, Ethereum, Arbitrum, Polygon or Optimism: is_contract, bytecode size, sha256 of the bytecode. Returns the exact paid x402 request for your input (GET /evm/code, $0.002 per call), with the response schema and an example; call that URL with an x402 or MPP client to get the data. Bad input is refused before any charge.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chain | No | Chain; default base | base |
| address | Yes | 0x address (40 hex) |