{
  "x402Version": 2,
  "id": 38023,
  "slug": "38023",
  "resource": "https://chain.openverbs.com/v1/source",
  "description": "Get the verified Solidity/Vyper source code for a deployed contract by address, sourced from Sourcify. Returns every source file (path + content), the contract name, language, compiler version and compiler settings (optimizer, evmVersion) — the full human-readable source an agent needs to read, audit or feed to an LLM. Supports Ethereum, Base, Arbitrum, Optimism, Polygon. Unverified contracts return `verified:false`. Live reads with cache fallback.",
  "type": "http",
  "resourceType": "AI Inference",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0xb3f4de103F34b99f0Da19B4F16D6B53a14C2194A",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "6000",
      "amountUsd": 0.006,
      "maxTimeoutSeconds": 300
    }
  ],
  "outputSchema": {
    "properties": {
      "example": {
        "type": "object"
      },
      "type": {
        "type": "string"
      }
    },
    "required": [
      "type"
    ],
    "type": "object"
  },
  "extensions": {
    "bazaar": {
      "info": {
        "input": {
          "body": {
            "address": "0x0000000000000000000000000000000000000001",
            "chain": "ethereum"
          },
          "bodyType": "json",
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "address": "0x0000000000000000000000000000000000000001",
            "chain": "ethereum",
            "chainId": 1,
            "compiler": null,
            "contractName": null,
            "fileCount": 0,
            "fullyQualifiedName": null,
            "language": null,
            "matchType": null,
            "settings": null,
            "sources": [],
            "stale": false,
            "totalBytes": 0,
            "truncated": false,
            "verified": false,
            "verifiedAt": null
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "body": {
                "additionalProperties": false,
                "properties": {
                  "address": {
                    "description": "Deployed contract address.",
                    "pattern": "^0x[0-9a-fA-F]{40}$",
                    "type": "string"
                  },
                  "chain": {
                    "description": "EVM chain to query. One of: ethereum, base, arbitrum, optimism, polygon. Default \"ethereum\".",
                    "enum": [
                      "ethereum",
                      "base",
                      "arbitrum",
                      "optimism",
                      "polygon"
                    ],
                    "type": "string"
                  }
                },
                "required": [
                  "address"
                ],
                "type": "object"
              },
              "bodyType": {
                "enum": [
                  "json",
                  "form-data",
                  "text"
                ],
                "type": "string"
              },
              "method": {
                "enum": [
                  "POST"
                ],
                "type": "string"
              },
              "type": {
                "const": "http",
                "type": "string"
              }
            },
            "required": [
              "type",
              "method",
              "bodyType",
              "body"
            ],
            "type": "object"
          },
          "output": {
            "properties": {
              "example": {
                "type": "object"
              },
              "type": {
                "type": "string"
              }
            },
            "required": [
              "type"
            ],
            "type": "object"
          }
        },
        "required": [
          "input"
        ],
        "type": "object"
      }
    }
  },
  "tags": [
    "contract source code",
    "get source code",
    "verified source",
    "solidity source",
    "smart contract source",
    "bazaar"
  ],
  "sourceHost": "chain.openverbs.com",
  "lastUpdated": "2026-10-06T17:00:17.794Z",
  "quality": {
    "calls30d": 3,
    "uniquePayers30d": 1,
    "lastCalledAt": "2026-10-06T17:00:17.624Z"
  },
  "metadata": {
    "extensions": {
      "bazaar": {
        "info": {
          "input": {
            "body": {
              "address": "0x0000000000000000000000000000000000000001",
              "chain": "ethereum"
            },
            "bodyType": "json",
            "method": "POST",
            "type": "http"
          },
          "output": {
            "example": {
              "address": "0x0000000000000000000000000000000000000001",
              "chain": "ethereum",
              "chainId": 1,
              "compiler": null,
              "contractName": null,
              "fileCount": 0,
              "fullyQualifiedName": null,
              "language": null,
              "matchType": null,
              "settings": null,
              "sources": [],
              "stale": false,
              "totalBytes": 0,
              "truncated": false,
              "verified": false,
              "verifiedAt": null
            },
            "type": "json"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "body": {
                  "additionalProperties": false,
                  "properties": {
                    "address": {
                      "description": "Deployed contract address.",
                      "pattern": "^0x[0-9a-fA-F]{40}$",
                      "type": "string"
                    },
                    "chain": {
                      "description": "EVM chain to query. One of: ethereum, base, arbitrum, optimism, polygon. Default \"ethereum\".",
                      "enum": [
                        "ethereum",
                        "base",
                        "arbitrum",
                        "optimism",
                        "polygon"
                      ],
                      "type": "string"
                    }
                  },
                  "required": [
                    "address"
                  ],
                  "type": "object"
                },
                "bodyType": {
                  "enum": [
                    "json",
                    "form-data",
                    "text"
                  ],
                  "type": "string"
                },
                "method": {
                  "enum": [
                    "POST"
                  ],
                  "type": "string"
                },
                "type": {
                  "const": "http",
                  "type": "string"
                }
              },
              "required": [
                "type",
                "method",
                "bodyType",
                "body"
              ],
              "type": "object"
            },
            "output": {
              "properties": {
                "example": {
                  "type": "object"
                },
                "type": {
                  "type": "string"
                }
              },
              "required": [
                "type"
              ],
              "type": "object"
            }
          },
          "required": [
            "input"
          ],
          "type": "object"
        }
      }
    }
  },
  "liveness": {
    "reliability": null
  },
  "verified": false,
  "featured": false,
  "provider": {
    "host": "chain.openverbs.com",
    "manifest_name": "chain.openverbs.com",
    "source": "cdp-mirror",
    "source_manifest_url": "https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources",
    "submitted_at": "2026-10-14T01:15:01.050Z"
  },
  "exampleResponse": {
    "address": "0x0000000000000000000000000000000000000001",
    "chain": "ethereum",
    "chainId": 1,
    "compiler": null,
    "contractName": null,
    "fileCount": 0,
    "fullyQualifiedName": null,
    "language": null,
    "matchType": null,
    "settings": null,
    "sources": [],
    "stale": false,
    "totalBytes": 0,
    "truncated": false,
    "verified": false,
    "verifiedAt": null
  }
}