{
  "x402Version": 2,
  "id": 2460,
  "slug": "2460",
  "resource": "https://www.tereno.xyz/api/v1/capabilities/contract.guard/invoke",
  "description": "Is this Base contract safe to interact with? Detect whether an address has no code, is an upgradeable proxy, or is currently paused, and get a bounded allow, review or block trust verdict with evidence and block freshness before you call it. Positive-sum by design: $0.03 when nobody has checked this contract yet, $0.02 on a shared bytecode fingerprint, $0.01 once another agent has computed the full answer — and the wallet that computed it first earns a share of every reuse.",
  "type": "http",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0xfbF218ACCBb0D57fc4E8fc3E2A885C910c4C9e94",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "30000",
      "maxTimeoutSeconds": 300
    }
  ],
  "outputSchema": {
    "bazaar": {
      "info": {
        "input": {
          "method": "GET",
          "queryParams": {
            "address": "0x1111111111111111111111111111111111111111"
          },
          "type": "http"
        },
        "output": {
          "example": {
            "capabilityId": "contract.guard",
            "capabilityVersion": "1.0.0",
            "invocationId": "uuid",
            "nextCall": {
              "recheck": {
                "capabilityId": "contract.guard",
                "listPriceUsdCeiling": 0.003,
                "method": "GET",
                "notBeforeBlock": 129,
                "payment": "x402",
                "url": "https://www.tereno.xyz/api/v1/capabilities/contract.guard/invoke?address=0x1111111111111111111111111111111111111111"
              },
              "validForSeconds": 10,
              "validUntilBlock": 128,
              "watch": {
                "baseline": "The first contract.change call on an address records the baseline.",
                "capabilityId": "contract.change",
                "listPriceUsdCeiling": 0.002,
                "method": "GET",
                "payment": "x402",
                "url": "https://www.tereno.xyz/api/v1/capabilities/contract.change/invoke?address=0x1111111111111111111111111111111111111111"
              }
            },
            "pricing": {
              "actualCacheStatus": "miss",
              "creditAppliedUsd": 0,
              "currency": "USDC",
              "listPriceUsd": 0.003,
              "pricePaidUsd": 0.003,
              "quotedCacheStatus": "miss"
            },
            "receiptUrl": "/api/v1/receipts/uuid",
            "result": {
              "computedAtBlock": 123,
              "reasonCodes": [
                "UPGRADEABLE_PROXY"
              ],
              "validUntilBlock": 128,
              "verdict": "review"
            },
            "verdict": "review"
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "method": {
                "enum": [
                  "GET"
                ],
                "type": "string"
              },
              "queryParams": {
                "additionalProperties": false,
                "properties": {
                  "address": {
                    "description": "Base contract address to preflight.",
                    "pattern": "^0x[a-fA-F0-9]{40}$",
                    "type": "string"
                  },
                  "quote": {
                    "description": "Optional single-use quote id.",
                    "type": "string"
                  }
                },
                "required": [
                  "address"
                ],
                "type": "object"
              },
              "type": {
                "const": "http",
                "type": "string"
              }
            },
            "required": [
              "type",
              "method"
            ],
            "type": "object"
          },
          "output": {
            "properties": {
              "example": {
                "properties": {
                  "capabilityId": {
                    "const": "contract.guard"
                  },
                  "invocationId": {
                    "type": "string"
                  },
                  "nextCall": {
                    "type": [
                      "object",
                      "null"
                    ]
                  },
                  "pricing": {
                    "type": "object"
                  },
                  "receiptUrl": {
                    "type": "string"
                  },
                  "result": {
                    "type": "object"
                  },
                  "verdict": {
                    "enum": [
                      "allow",
                      "review",
                      "block"
                    ]
                  }
                },
                "required": [
                  "capabilityId",
                  "invocationId",
                  "verdict",
                  "result",
                  "pricing",
                  "receiptUrl"
                ],
                "type": "object"
              },
              "type": {
                "type": "string"
              }
            },
            "required": [
              "type"
            ],
            "type": "object"
          }
        },
        "required": [
          "input"
        ],
        "type": "object"
      }
    },
    "builder-code": {
      "info": {
        "a": "bc_8kag0yoi"
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "additionalProperties": false,
        "properties": {
          "a": {
            "description": "App builder code",
            "pattern": "^[a-z0-9_]{1,32}$",
            "type": "string"
          },
          "s": {
            "description": "Service builder codes",
            "items": {
              "pattern": "^[a-z0-9_]{1,32}$",
              "type": "string"
            },
            "type": "array"
          },
          "w": {
            "description": "Wallet builder code",
            "pattern": "^[a-z0-9_]{1,32}$",
            "type": "string"
          }
        },
        "type": "object"
      }
    }
  },
  "tags": [
    "bazaar",
    "builder-code"
  ],
  "sourceHost": "www.tereno.xyz",
  "lastUpdated": "2026-09-05T02:57:24.602Z",
  "quality": {
    "calls30d": 2,
    "uniquePayers30d": 2,
    "lastCalledAt": "2026-09-05T02:57:24.357Z"
  },
  "liveness": {},
  "verified": false,
  "featured": false,
  "provider": {
    "host": "www.tereno.xyz",
    "manifest_name": "www.tereno.xyz",
    "source": "cdp-mirror",
    "source_manifest_url": "https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources",
    "submitted_at": "2026-09-18T22:00:31.484Z"
  }
}