Check if an Ethereum address is a contract via eth_getCode
api.zato.org/api/chain/code/:address
Check if an Ethereum address is a contract via eth_getCode - returns deployed bytecode, its length and is_contract. Cheaper drop-in: same path, params and response.
GET
https://api.zato.org/api/chain/code/:addressUptime100% of 1 check in 30 days
30 days agoToday
Try it
Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.
The response shows up here.
Call it from an agent
// npm install fourohtwo
import { createPayer } from "fourohtwo";
// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://api.zato.org/api/chain/code/:address?network=ethereum");
console.log(await res.json());Example input
{
"network": "ethereum"
}More from Contract InspectorProvider status
- api.zato.org/api/chain/proxyUse when an agent must know which code really runs behind an address: detects EIP-1967 proxies (implementation, admin, beacon), legacy ZeppelinOS proxies, EIP-1167 minimal clones and EIP-7702 delegated EOAs on Ethereum (default) or Base, and returns the target addresses and whether they hold code.0.002
- x402-wallet-balances.vercel.app/contractInspect any address on Base, Ethereum, Arbitrum, Optimism and Polygon in one call: wallet or contract, bytecode size and hash, EIP-7702 delegation, proxy type and implementation/admin/beacon (EIP-1967, beacon, EIP-1167 clones, legacy ZeppelinOS such as USDC), and token standard with on-chain name, symbol, decimals and total supply (ERC-20, ERC-721, ERC-1155). Not charged if every chain fails. No A0.002
