81trust / 100

Onchain Contract

by dt0ur.online in Onchain & crypto

x402 APIPassing, checked 23 min ago

Classify any address on base, ethereum, arbitrum, optimism, polygon, bsc: wallet (EOA, incl. EIP-7702 delegation) or contract, bytecode size, upgradeable proxy and implementation (EIP-1967, beacon, EIP-1167 clones), token standard (ERC-20/721/1155), Safe multisig threshold and owners, and Ownable owner.

POST https://dt0ur.online/api/onchain/contract

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
256 ms typical, 256 ms slowest 5%
Last check
23 min ago
Next check
in 5 min

How to call it

# See the payment challenge (nothing is charged)
curl -i -X POST "https://dt0ur.online/api/onchain/contract" \
  -H "content-type: application/json" \
  -d '{"address":"0xBC4CA0EdA7647A8aB7C2061c2E118A18a936f13D","chain":"ethereum"}'
import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

const client = new x402Client().register(
  "eip155:8453",
  new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);

// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fdt0ur.online%2Fapi%2Fonchain%2Fcontract
const res = await pay("https://dt0ur.online/api/onchain/contract", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"address":"0xBC4CA0EdA7647A8aB7C2061c2E118A18a936f13D","chain":"ethereum"}),
});
console.log(await res.json());

Example input

{
  "address": "0xBC4CA0EdA7647A8aB7C2061c2E118A18a936f13D",
  "chain": "ethereum"
}

Example output

{
  "address": "0xBC4CA0EdA7647A8aB7C2061c2E118A18a936f13D",
  "bytecode_size_bytes": 16790,
  "chain": "ethereum",
  "explorer_url": "https://etherscan.io/address/0xBC4CA0EdA7647A8aB7C2061c2E118A18a936f13D",
  "is_contract": true,
  "native_balance": 0.010201,
  "nonce": 1,
  "owner": "0x0000000000000000000000000000000000000000",
  "proxy": {
    "admin": null,
    "beacon": null,
    "implementation": null,
    "is_proxy": false,
    "proxy_type": null
  },
  "safe": null,
  "supports_erc165": true,
  "token_standards": [
    "ERC-721"
  ],
  "token_symbol": "BAYC",
  "type": "token"
}

Security scan

  • No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.

Recent checks

WhenResultHTTPTimePrice
23 min agoPassed402274 ms$0.01
4 h agoPassed402256 ms$0.01
9 h agoPassed402192 ms$0.01