{
  "openapi": "3.1.0",
  "info": {
    "title": "Solana RPC",
    "version": "1.0.0",
    "description": "Solana RPC HTTP method reference."
  },
  "servers": [
    {
      "url": "https://rpc-mainnet.solanatracker.io",
      "description": "Mainnet RPC endpoint"
    }
  ],
  "paths": {
    "/": {
      "post": {
        "operationId": "getslotleader",
        "summary": "getSlotLeader",
        "security": [
          {
            "ApiKeyQuery": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "jsonrpc": {
                    "allOf": [
                      {
                        "type": "string",
                        "enum": [
                          "2.0"
                        ],
                        "description": "The JSON-RPC protocol version.",
                        "example": "2.0",
                        "default": "2.0"
                      }
                    ]
                  },
                  "id": {
                    "allOf": [
                      {
                        "type": "string",
                        "description": "A unique identifier for the request.",
                        "example": "1",
                        "default": "1"
                      }
                    ]
                  },
                  "method": {
                    "allOf": [
                      {
                        "type": "string",
                        "enum": [
                          "getSlotLeader"
                        ],
                        "description": "The name of the RPC method to invoke.",
                        "example": "getSlotLeader",
                        "default": "getSlotLeader"
                      }
                    ]
                  },
                  "params": {
                    "allOf": [
                      {
                        "type": "array",
                        "description": "Optional configuration object.",
                        "items": {
                          "type": "object",
                          "properties": {
                            "commitment": {
                              "type": "string",
                              "description": "The commitment level for the request.",
                              "enum": [
                                "confirmed",
                                "finalized",
                                "processed"
                              ],
                              "example": "finalized"
                            },
                            "minContextSlot": {
                              "type": "integer",
                              "description": "The minimum slot that the request can be evaluated at.",
                              "example": 1000
                            }
                          }
                        }
                      }
                    ]
                  }
                },
                "required": [
                  "jsonrpc",
                  "id",
                  "method",
                  "params"
                ]
              },
              "examples": {
                "example": {
                  "value": {
                    "jsonrpc": "2.0",
                    "id": "db16f277-1a22-41ff-9f85-f37e2cd77900",
                    "method": "getSlotLeader",
                    "params": [
                      {
                        "commitment": "finalized"
                      }
                    ]
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successfully retrieved the slot leader.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "jsonrpc": {
                      "allOf": [
                        {
                          "type": "string",
                          "enum": [
                            "2.0"
                          ],
                          "description": "The JSON-RPC protocol version.",
                          "example": "2.0"
                        }
                      ]
                    },
                    "id": {
                      "allOf": [
                        {
                          "type": "string",
                          "description": "Identifier matching the request.",
                          "example": "1"
                        }
                      ]
                    },
                    "result": {
                      "allOf": [
                        {
                          "type": "string",
                          "description": "The Solana validator identity (public key) scheduled as block producer for this slot.",
                          "example": "q9XWcZ7T1wP4bW9SB4XgNNwjnFEJ982nE8aVbbNuwot"
                        }
                      ]
                    }
                  }
                },
                "examples": {
                  "example": {
                    "value": {
                      "jsonrpc": "2.0",
                      "id": "db16f277-1a22-41ff-9f85-f37e2cd77900",
                      "result": "q9XWcZ7T1wP4bW9SB4XgNNwjnFEJ982nE8aVbbNuwot"
                    }
                  }
                }
              }
            }
          }
        },
        "description": "Get the validator scheduled to lead the current slot."
      }
    }
  },
  "components": {
    "securitySchemes": {
      "ApiKeyQuery": {
        "type": "apiKey",
        "in": "query",
        "name": "api_key"
      }
    }
  }
}
