{
  "openapi": "3.1.0",
  "info": {
    "title": "Verify Vyper Source Code",
    "version": "2.0.0",
    "description": "Submit a Vyper contract for verification.",
    "license": {
      "name": "Etherscan API Terms",
      "url": "https://etherscan.io/terms"
    }
  },
  "servers": [
    {
      "url": "https://api.etherscan.io",
      "description": "Etherscan API."
    }
  ],
  "security": [
    {
      "apiKey": []
    }
  ],
  "paths": {
    "/v2/api": {
      "post": {
        "operationId": "postVerifyvyper",
        "summary": "Verify Vyper Source Code",
        "description": "Submit a Vyper contract for verification.",
        "parameters": [
          {
            "name": "chainid",
            "in": "query",
            "required": true,
            "description": "Chain ID to query, eg 1 for Ethereum, 8453 for Base from our supported chains.",
            "schema": {
              "type": "string"
            },
            "example": "1"
          },
          {
            "name": "module",
            "in": "query",
            "required": true,
            "description": "Set to contract for this endpoint.",
            "schema": {
              "type": "string",
              "default": "contract"
            },
            "example": "contract"
          },
          {
            "name": "action",
            "in": "query",
            "required": true,
            "description": "Set to verifysourcecode for this endpoint.",
            "schema": {
              "type": "string",
              "default": "verifysourcecode"
            },
            "example": "verifysourcecode"
          }
        ],
        "security": [
          {
            "apiKey": []
          }
        ],
        "x-mint": {
          "metadata": {
            "title": "Verify Vyper Source Code",
            "description": "Submit a Vyper contract for verification."
          }
        },
        "x-etherscan-source-page": {
          "page": "api-reference/endpoint/verifyvyper",
          "title": "Verify Vyper Source Code",
          "module": "contract",
          "action": "verifysourcecode"
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/x-www-form-urlencoded": {
              "schema": {
                "type": "object",
                "properties": {
                  "codeformat": {
                    "type": "string",
                    "examples": [
                      "vyper-json"
                    ],
                    "description": "Use `vyper-json` for Vyper contracts."
                  },
                  "sourceCode": {
                    "type": "string",
                    "description": "The Vyper source code in JSON format."
                  },
                  "constructorArguments": {
                    "type": "string",
                    "examples": [
                      "00000000000000000000000074271f2282ed7ee35c166122a60c9830354be42a"
                    ],
                    "description": "Optional constructor arguments used in contract deployment."
                  },
                  "contractaddress": {
                    "type": "string",
                    "examples": [
                      "0xBB9bc244D798123fDe783fCc1C72d3Bb8C189413"
                    ],
                    "description": "The address where the contract is deployed."
                  },
                  "contractname": {
                    "type": "string",
                    "examples": [
                      "contracts/Verified.vy:Verified"
                    ],
                    "description": "The contract name, including path if applicable."
                  },
                  "compilerversion": {
                    "type": "string",
                    "examples": [
                      "vyper:0.4.0"
                    ],
                    "description": "Compiler version used for compilation."
                  },
                  "optimizationUsed": {
                    "type": "string",
                    "examples": [
                      "0"
                    ],
                    "description": "Use `1` if compiler optimizations were enabled, otherwise `0`."
                  }
                },
                "required": [
                  "codeformat",
                  "sourceCode",
                  "contractaddress",
                  "contractname",
                  "compilerversion",
                  "optimizationUsed"
                ]
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "apiKey": {
        "type": "apiKey",
        "in": "query",
        "name": "apikey",
        "description": "Your Etherscan API key."
      }
    }
  }
}