{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/vybenetwork-com/json-schema/vybenetwork-com-withdraw-mev-return-schema.json",
  "title": "WithdrawMevReturn",
  "description": "Wallet performance attribution response for API endpoints.\n\nAll fields default to 0.0 when no historical data is available.",
  "x-generated": "2026-11-28",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/vybenetwork-com-solana-api-websocket-api-openapi.yml#/components/schemas/WithdrawMevReturn",
  "oneOf": [
    {
      "properties": {
        "accounts": {
          "description": "Details for each stake account",
          "items": {
            "$ref": "#/$defs/WithdrawMevAccountDetail"
          },
          "type": "array"
        },
        "chunked": {
          "description": "Whether response contains multiple transactions (false)",
          "type": "boolean"
        },
        "mev": {
          "description": "MEV portion of withdrawable (in SOL)",
          "format": "double",
          "type": "number"
        },
        "net": {
          "description": "Net amount after fee (in SOL)",
          "format": "double",
          "type": "number"
        },
        "protocol_fee": {
          "description": "Fee charged (in SOL)",
          "format": "double",
          "type": "number"
        },
        "simulation": {
          "allOf": [
            {
              "$ref": "#/$defs/WithdrawMevSimulation"
            }
          ],
          "nullable": true
        },
        "total_withdrawable": {
          "description": "Total withdrawable amount (in SOL)",
          "format": "double",
          "type": "number"
        },
        "transaction": {
          "description": "Base64-encoded unsigned transaction",
          "type": "string"
        }
      },
      "required": [
        "transaction",
        "chunked",
        "total_withdrawable",
        "mev",
        "protocol_fee",
        "net",
        "accounts"
      ],
      "type": "object"
    },
    {
      "properties": {
        "chunked": {
          "description": "Whether response contains multiple transactions (true)",
          "type": "boolean"
        },
        "simulation": {
          "allOf": [
            {
              "$ref": "#/$defs/WithdrawMevSimulation"
            }
          ],
          "nullable": true
        },
        "total_mev": {
          "description": "MEV portion of withdrawable (in SOL)",
          "format": "double",
          "type": "number"
        },
        "total_withdrawable": {
          "description": "Total withdrawable amount (in SOL)",
          "format": "double",
          "type": "number"
        },
        "transactions": {
          "description": "Array of chunks",
          "items": {
            "$ref": "#/$defs/WithdrawMevChunk"
          },
          "type": "array"
        }
      },
      "required": [
        "chunked",
        "transactions",
        "total_withdrawable",
        "total_mev"
      ],
      "type": "object"
    }
  ],
  "$defs": {
    "WithdrawMevAccountDetail": {
      "description": "Schema model for withdraw mev account detail fields used in this Solana API.",
      "properties": {
        "address": {
          "description": "Stake account address",
          "type": "string"
        },
        "mev": {
          "description": "MEV portion (in SOL)",
          "format": "double",
          "type": "number"
        },
        "status": {
          "description": "Status",
          "type": "string"
        },
        "withdrawable": {
          "description": "Withdrawable amount (in SOL)",
          "format": "double",
          "type": "number"
        }
      },
      "required": [
        "address",
        "withdrawable",
        "mev",
        "status"
      ],
      "type": "object"
    },
    "WithdrawMevChunk": {
      "description": "Schema model for withdraw mev chunk fields used in this Solana API.",
      "properties": {
        "accounts": {
          "description": "Details for each stake account",
          "items": {
            "$ref": "#/$defs/WithdrawMevAccountDetail"
          },
          "type": "array"
        },
        "transaction": {
          "description": "Base64-encoded unsigned transaction",
          "type": "string"
        }
      },
      "required": [
        "transaction",
        "accounts"
      ],
      "type": "object"
    },
    "WithdrawMevSimulation": {
      "description": "Schema model for withdraw mev simulation fields used in this Solana API.",
      "properties": {
        "logs": {
          "description": "Program execution logs returned by the transaction simulation response.",
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "success": {
          "description": "Indicates whether the simulation completed successfully without runtime failure.",
          "type": "boolean"
        },
        "unitConsumed": {
          "description": "The compute units consumed by the simulated transaction execution.",
          "format": "int64",
          "minimum": 0,
          "type": "integer"
        }
      },
      "required": [
        "success",
        "unitConsumed",
        "logs"
      ],
      "type": "object"
    }
  }
}