{
  "openapi": "3.1.0",
  "info": {
    "title": "SolanaBurner finalized proof API",
    "version": "1.0.0",
    "description": "Read-only proof lookup. Does not authorize, sign, or submit burns. Results reflect SolanaBurner RPC data; independently verify using your trusted RPC."
  },
  "servers": [
    {
      "url": "https://solanaburner.xyz"
    }
  ],
  "paths": {
    "/api/proof/{network}/{signature}": {
      "get": {
        "operationId": "getFinalizedBurnProof",
        "summary": "Verify a successful finalized SolanaBurner burn",
        "parameters": [
          {
            "name": "network",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "mainnet",
                "devnet"
              ]
            }
          },
          {
            "name": "signature",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[1-9A-HJ-NP-Za-km-z]{64,88}$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Finalized native burn and exact app fee verified",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "status",
                    "receipt",
                    "evidence"
                  ],
                  "properties": {
                    "schemaVersion": {
                      "type": "integer",
                      "const": 1
                    },
                    "status": {
                      "const": "finalized"
                    },
                    "receipt": {
                      "type": "object",
                      "properties": {
                        "signature": {
                          "type": "string"
                        },
                        "network": {
                          "enum": [
                            "mainnet",
                            "devnet"
                          ]
                        },
                        "mint": {
                          "type": "string"
                        },
                        "owner": {
                          "type": "string"
                        },
                        "amount": {
                          "type": "string",
                          "pattern": "^[0-9]+$"
                        },
                        "decimals": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 255
                        },
                        "timestamp": {
                          "type": [
                            "integer",
                            "null"
                          ]
                        },
                        "fee": {
                          "type": "string",
                          "pattern": "^[0-9]+$"
                        },
                        "networkFee": {
                          "type": "string",
                          "pattern": "^[0-9]+$"
                        },
                        "reclaimed": {
                          "type": "string",
                          "pattern": "^[0-9]+$"
                        },
                        "slot": {
                          "type": "integer"
                        }
                      }
                    },
                    "explorer": {
                      "type": "string",
                      "format": "uri"
                    },
                    "policy": {
                      "type": "string",
                      "format": "uri"
                    },
                    "verificationSource": {
                      "type": "string"
                    },
                    "evidence": {
                      "type": "object",
                      "description": "Parsed transaction from getTransaction with finalized commitment; contains public chain data."
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid, unavailable, unfinalized or nonconforming transaction, rate limit, or upstream error.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}
