Skip to content
Fourohtwo

Unichain is-contract check

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

Unichain is-contract check. Check whether a 0x address on Unichain 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.

BasePolygonArbitrumSolanaAnswering
GEThttps://agent-data-tools.revmesh2074.workers.dev/unichain/is-contract

Uptime100% 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

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/unichain/is-contract?address=0x078D782b760474a361dDA0AF3839290b0EF57AD6");
console.log(await res.json());

Example input

{
  "address": "0x078D782b760474a361dDA0AF3839290b0EF57AD6"
}