Api Endpoint

x402-data-api.sigrunner.workers.dev

Contract-code check for a Base mainnet address (is_contract + code size + EIP-7702 delegated-EOA detection). Use when an agent must check whether a Base address is a contract or an EOA before interacting.

Open interactive test console

Offering

Provider
x402-data-api.sigrunner.workers.dev
Method
GET
Offering type
Api Endpoint
Transport type
http
Category
Security
Delivery
Not provided
Pricing model
Not provided
x402 version
2

Endpoint context

URL
https://x402-data-api.sigrunner.workers.dev/chain/code
MIME type
application/json
First seen
2026-10-16T02:59:31.787Z
Last seen
Tags
Onchain, Base, RPC, code, Data

Payment pricing

x402 payment terms are the authoritative price for calling this endpoint.

Payment option 1
0.002 USDC
Atomic price: 2000 · Network: eip155:8453 · Asset: USDC · Scheme: exact
Raw x402 terms
[
  {
    "scheme": "exact",
    "network": "eip155:8453",
    "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
    "amount": "2000",
    "payTo": "0x5765ae06a52dc7A0BB71c36A11db512c7ea9ed10"
  }
]

Observed health

Status
Healthy
Latest latency
386 ms
Average latency
1159 ms
HTTP status
402
Last checked
Reachability
100% over 14 checks

Latency is measured to the first response headers. A reachable result does not verify response accuracy or merchant identity.

Input schema

{
  "type": "object",
  "properties": {
    "type": {
      "type": "string",
      "const": "http"
    },
    "method": {
      "type": "string",
      "enum": [
        "GET"
      ]
    },
    "queryParams": {
      "type": "object",
      "properties": {
        "address": {
          "type": "string",
          "description": "0x-prefixed 20-byte Base address"
        }
      }
    }
  },
  "required": [
    "type",
    "method"
  ],
  "additionalProperties": false
}

Output schema

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "properties": {
    "input": {
      "additionalProperties": false,
      "properties": {
        "method": {
          "enum": [
            "GET"
          ],
          "type": "string"
        },
        "queryParams": {
          "properties": {
            "address": {
              "description": "0x-prefixed 20-byte Base address",
              "type": "string"
            }
          },
          "type": "object"
        },
        "type": {
          "const": "http",
          "type": "string"
        }
      },
      "required": [
        "type",
        "method"
      ],
      "type": "object"
    },
    "output": {
      "properties": {
        "example": {
          "properties": {
            "address": {
              "type": "string"
            },
            "chain": {
              "type": "string"
            },
            "code_size_bytes": {
              "type": "integer"
            },
            "delegate_address": {
              "type": "null"
            },
            "is_contract": {
              "type": "boolean"
            },
            "is_eip7702_delegate": {
              "type": "boolean"
            }
          },
          "required": [
            "address",
            "is_contract",
            "is_eip7702_delegate",
            "delegate_address",
            "code_size_bytes",
            "chain"
          ],
          "type": "object"
        },
        "type": {
          "type": "string"
        }
      },
      "required": [
        "type"
      ],
      "type": "object"
    }
  },
  "required": [
    "input"
  ],
  "type": "object"
}