Skip to content
Fourohtwo

Sonic is-contract check

agent-data-tools.revmesh2074.workers.dev/sonic/is-contract

Sonic is-contract check. Check whether a 0x address on Sonic is a smart contract or a plain wallet: bytecode size, and whether it is an EIP-1167 minimal proxy and which implementation it points to. Use before sending funds or approving a spender; for a fuller risk verdict use check_counterparty. A malformed address is rejected with 400, uncharged.

BasePolygonArbitrumSolanaUnchecked
GEThttps://agent-data-tools.revmesh2074.workers.dev/sonic/is-contract

UptimeNot checked yet

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

import { createPayer } from "fourohtwo";

// One agent key pays USDC on Base or USDG on Robinhood Chain,
// inside the spending rules you set on Fourohtwo.
const pay = createPayer({ privateKey: process.env.AGENT_KEY });
const res = await pay("https://agent-data-tools.revmesh2074.workers.dev/sonic/is-contract?address=0x29219dd400f2Bf60E5a23d13Be72B486D4038894");
console.log(await res.json());

Example input

{
  "address": "0x29219dd400f2Bf60E5a23d13Be72B486D4038894"
}