crypto · crypto · evm · base · ethereum · contract · introspection · bytecode · token · metadata · erc20 · erc165 · erc721 · erc1155 · rpc · read-only · onchain

Base contract inspection

Inspect Base mainnet contract bytecode, common token metadata, and ERC-165, ERC-721, and ERC-1155 interface signals at one resolved block.

$0.005 USDCBasex402 v2POST

Endpoint

https://apiacre.com/v1/crypto/base-contract-inspect

Send the JSON body below. An unpaid request returns HTTP 402 with a PAYMENT-REQUIRED header; an x402-compatible buyer signs the requirement and retries with PAYMENT-SIGNATURE.

Pay $0.005 USDC and run in your browser

Agent one-call path

Optional third-party AgentCash can inspect this route and handle the x402 retry. This example does not pass its payment auto-confirm flag and caps the call at exactly $0.005 USDC. Review the local wallet and request before approving payment.

npx --yes agentcash@latest check https://apiacre.com/v1/crypto/base-contract-inspect
npx --yes agentcash@latest fetch https://apiacre.com/v1/crypto/base-contract-inspect \
  --method POST \
  --header 'content-type: application/json' \
  --body '{"contract":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","block_tag":"safe"}' \
  --payment-protocol x402 \
  --payment-network base \
  --max-amount 0.005

AgentCash CLI documentation · Official SDK and wallet-safety alternatives

Input example

{
  "contract": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
  "block_tag": "safe"
}

Response shape

View free static sample JSON

{
  "request_id": "018f1f54-7f38-7ba2-8dc3-5f90272d9f1a",
  "service": "crypto.base-contract-inspect",
  "version": "1",
  "data": {
    "network": "eip155:8453",
    "contract": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
    "found": true,
    "block": {
      "requestedTag": "safe",
      "number": 49834076,
      "hash": "0x84d697381027abac69728893f2428050d4600473cc00d7e8b8d4ea6365a3656f",
      "timestamp": "2026-08-11T14:11:39+00:00"
    },
    "code": {
      "sizeBytes": 1852,
      "sha256": "98d785fcb1bf847f287adc2310759fd94cc13e754b974bc72131382e8266f607"
    },
    "tokenMetadata": {
      "status": "complete",
      "name": "USD Coin",
      "symbol": "USDC",
      "decimals": 6,
      "totalSupplyAtomic": "4194970321976430",
      "totalSupplyFormatted": "4194970321.97643"
    },
    "interfaces": [
      {
        "standard": "ERC-165",
        "interfaceId": "0x01ffc9a7",
        "supported": null
      },
      {
        "standard": "ERC-721",
        "interfaceId": "0x80ac58cd",
        "supported": null
      },
      {
        "standard": "ERC-1155",
        "interfaceId": "0xd9b67a26",
        "supported": null
      }
    ],
    "networkRequestsMade": 2,
    "readOnly": true,
    "transactionBroadcast": false,
    "warnings": [
      "ERC-165 interface support was unavailable or non-standard",
      "ERC-721 interface support was unavailable or non-standard",
      "ERC-1155 interface support was unavailable or non-standard"
    ],
    "explorerUrl": "https://basescan.org/address/0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
    "source": "https://docs.base.org/base-chain/quickstart/connecting-to-base",
    "standardSources": {
      "ERC-20": "https://eips.ethereum.org/EIPS/eip-20",
      "ERC-165": "https://eips.ethereum.org/EIPS/eip-165",
      "ERC-721": "https://eips.ethereum.org/EIPS/eip-721",
      "ERC-1155": "https://eips.ethereum.org/EIPS/eip-1155"
    },
    "disclaimer": "Point-in-time public Base state only. Token methods are optional and untrusted; interface responses are contract claims, not identity, safety, implementation, ownership, or standards-conformance guarantees. Proxy bytecode may describe only the proxy while calls execute against its current implementation."
  },
  "meta": {
    "duration_ms": 42,
    "cached": false,
    "sources": [],
    "warnings": [],
    "next_actions": []
  }
}

Try the payment challenge

curl -i -X POST 'https://apiacre.com/v1/crypto/base-contract-inspect' \
  -H 'content-type: application/json' \
  --data '{"contract":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","block_tag":"safe"}'