{
  "x402Version": 2,
  "id": 2463,
  "slug": "2463",
  "resource": "https://www.tereno.xyz/api/v1/capabilities/contract.interface/invoke",
  "description": "What standard does this Base contract implement? Detect ERC-20, ERC-721, ERC-1155 and ERC-165 support plus EIP-1967 proxy control slots in one cheap bounded check, shared across agents for as long as the code at the address is unchanged, up to 7 days, and only for a few blocks when the target is an upgradeable proxy. Positive-sum by design: $0.02 when nobody has checked this contract yet, $0.01 once another agent has — 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": "20000",
      "maxTimeoutSeconds": 300
    }
  ],
  "outputSchema": {
    "bazaar": {
      "info": {
        "input": {
          "method": "GET",
          "queryParams": {
            "address": "0x1111111111111111111111111111111111111111"
          },
          "type": "http"
        },
        "output": {
          "example": {
            "capabilityId": "contract.interface",
            "capabilityVersion": "1.1.0",
            "invocationId": "uuid",
            "pricing": {
              "actualCacheStatus": "miss",
              "creditAppliedUsd": 0,
              "currency": "USDC",
              "listPriceUsd": 0.001,
              "pricePaidUsd": 0.001,
              "quotedCacheStatus": "miss"
            },
            "receiptUrl": "/api/v1/receipts/uuid",
            "result": {
              "bytecodeBytes": 4096,
              "codeHash": "0xabababababababababababababababababababababababababababababababab",
              "computedAtBlock": 123456,
              "interfaces": {
                "admin": null,
                "erc1155": false,
                "erc165": false,
                "erc20": true,
                "erc721": false,
                "implementation": null,
                "proxy": false
              },
              "reasonCodes": [
                "ERC20_DETECTED"
              ],
              "validUntilBlock": 425856,
              "verdict": "allow"
            },
            "verdict": "allow"
          },
          "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 probe for ERC-20, ERC-721, ERC-1155, ERC-165 and EIP-1967 proxy patterns.",
                    "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.interface"
                  },
                  "invocationId": {
                    "type": "string"
                  },
                  "pricing": {
                    "type": "object"
                  },
                  "receiptUrl": {
                    "type": "string"
                  },
                  "result": {
                    "properties": {
                      "bytecodeBytes": {
                        "type": "integer"
                      },
                      "codeHash": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "interfaces": {
                        "type": "object"
                      },
                      "reasonCodes": {
                        "type": "array"
                      },
                      "validUntilBlock": {
                        "type": "integer"
                      }
                    },
                    "required": [
                      "interfaces",
                      "reasonCodes",
                      "validUntilBlock"
                    ],
                    "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-08T01:02:13.823Z",
  "quality": {
    "calls30d": 1,
    "uniquePayers30d": 1,
    "lastCalledAt": "2026-09-08T01:02:13.596Z"
  },
  "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"
  }
}