> ## Documentation Index
> Fetch the complete documentation index at: https://docs.solanatracker.io/llms.txt
> Use this file to discover all available pages before exploring further.

# getBlockProduction

> Runs the Solana RPC `getBlockProduction` method.



## OpenAPI

````yaml getblockproduction post /
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
security: []
paths:
  /:
    post:
      summary: Run `getBlockProduction`
      description: Runs the Solana RPC `getBlockProduction` method.
      operationId: getblockproduction
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                jsonrpc:
                  allOf:
                    - type: string
                      enum:
                        - '2.0'
                      description: The JSON-RPC protocol version.
                      default: '2.0'
                id:
                  allOf:
                    - type: string
                      description: A unique identifier for the request.
                      example: '1'
                      default: '1'
                method:
                  allOf:
                    - type: string
                      enum:
                        - getBlockProduction
                      description: The name of the RPC method to invoke.
                      default: getBlockProduction
                params:
                  allOf:
                    - type: array
                      description: Parameters for the request.
                      items:
                        oneOf:
                          - type: object
                            description: Configuration options for the request.
                            properties:
                              commitment:
                                type: string
                                description: The commitment level for the request.
                                enum:
                                  - processed
                                  - confirmed
                                  - finalized
                                example: finalized
                              identity:
                                type: string
                                description: >-
                                  Optional validator identity public key
                                  (base-58 encoded) to filter results for a
                                  specific validator.
                                example: 85iYT5RuzRTDgjyRa3cP8SYhM2j21fj7NhfJ3peu1DPr
                              range:
                                type: object
                                description: >-
                                  Optional slot range boundaries to limit the
                                  block production statistics time period.
                                properties:
                                  firstSlot:
                                    type: integer
                                    description: >-
                                      Starting slot number to begin analyzing
                                      block production statistics from
                                      (inclusive).
                                    example: 0
                                  lastSlot:
                                    type: integer
                                    description: >-
                                      Ending slot number to analyze block
                                      production statistics until (inclusive).
                                      If omitted, uses the current slot.
                                    example: 9887
              required:
                - jsonrpc
                - id
                - method
                - params
            examples:
              example:
                value:
                  jsonrpc: '2.0'
                  id: db16f277-1a22-41ff-9f85-f37e2cd77900
                  method: getBlockProduction
                  params:
                    - commitment: finalized
                      identity: 85iYT5RuzRTDgjyRa3cP8SYhM2j21fj7NhfJ3peu1DPr
                      range:
                        firstSlot: 0
                        lastSlot: 9887
      responses:
        '200':
          description: Successfully retrieved block production information.
          content:
            application/json:
              schema:
                type: object
                properties:
                  jsonrpc:
                    allOf:
                      - type: string
                        enum:
                          - '2.0'
                  id:
                    allOf:
                      - type: string
                  result:
                    allOf:
                      - type: object
                        properties:
                          context:
                            type: object
                            properties:
                              slot:
                                type: integer
                                description: The slot at the time of the response.
                                example: 9887
                          value:
                            type: object
                            properties:
                              byIdentity:
                                type: object
                                additionalProperties:
                                  type: array
                                  items:
                                    type: integer
                                  description: >-
                                    Two-element array containing [leaderSlots,
                                    blocksProduced] statistics for this
                                    validator.
                                description: >-
                                  Map of validator identity public keys to their
                                  block production performance metrics.
                                example:
                                  85iYT5RuzRTDgjyRa3cP8SYhM2j21fj7NhfJ3peu1DPr:
                                    - 9888
                                    - 9886
                              range:
                                type: object
                                properties:
                                  firstSlot:
                                    type: integer
                                    description: >-
                                      Starting slot number of the analyzed block
                                      production statistics period.
                                    example: 0
                                  lastSlot:
                                    type: integer
                                    description: >-
                                      Ending slot number of the analyzed block
                                      production statistics period.
                                    example: 9887
              examples:
                example:
                  value:
                    jsonrpc: '2.0'
                    id: <string>
                    result:
                      context:
                        slot: 9887
                      value:
                        byIdentity:
                          85iYT5RuzRTDgjyRa3cP8SYhM2j21fj7NhfJ3peu1DPr:
                            - 9888
                            - 9886
                        range:
                          firstSlot: 0
                          lastSlot: 9887
        '400':
          description: Bad Request - Invalid request parameters or malformed request.
          content:
            application/json:
              schema:
                type: object
                properties:
                  jsonrpc:
                    allOf:
                      - type: string
                        enum:
                          - '2.0'
                  error:
                    allOf:
                      - type: object
                        properties:
                          code:
                            type: integer
                          message:
                            type: string
                refIdentifier: '#/components/schemas/ErrorResponse'
              examples:
                example:
                  value:
                    jsonrpc: '2.0'
                    error:
                      code: -32602
                      message: Invalid params
        '401':
          description: Unauthorized - Invalid or missing API key.
          content:
            application/json:
              schema:
                type: object
                properties:
                  jsonrpc:
                    allOf:
                      - type: string
                        enum:
                          - '2.0'
                  error:
                    allOf:
                      - type: object
                        properties:
                          code:
                            type: integer
                          message:
                            type: string
                refIdentifier: '#/components/schemas/ErrorResponse'
              examples:
                example:
                  value:
                    jsonrpc: '2.0'
                    error:
                      code: -32001
                      message: Unauthorized
                    id: db16f277-1a22-41ff-9f85-f37e2cd77900
        '429':
          description: Too Many Requests - Rate limit exceeded.
          content:
            application/json:
              schema:
                type: object
                properties:
                  jsonrpc:
                    allOf:
                      - type: string
                        enum:
                          - '2.0'
                  error:
                    allOf:
                      - type: object
                        properties:
                          code:
                            type: integer
                          message:
                            type: string
                refIdentifier: '#/components/schemas/ErrorResponse'
              examples:
                example:
                  value:
                    jsonrpc: '2.0'
                    error:
                      code: -32005
                      message: Too many requests
                    id: db16f277-1a22-41ff-9f85-f37e2cd77900
        '500':
          description: Internal Server Error - An error occurred on the server.
          content:
            application/json:
              schema:
                type: object
                properties:
                  jsonrpc:
                    allOf:
                      - type: string
                        enum:
                          - '2.0'
                  error:
                    allOf:
                      - type: object
                        properties:
                          code:
                            type: integer
                          message:
                            type: string
                refIdentifier: '#/components/schemas/ErrorResponse'
              examples:
                example:
                  value:
                    jsonrpc: '2.0'
                    error:
                      code: -32603
                      message: Internal error
                    id: db16f277-1a22-41ff-9f85-f37e2cd77900
        '503':
          description: Service Unavailable - The service is temporarily unavailable.
          content:
            application/json:
              schema:
                type: object
                properties:
                  jsonrpc:
                    allOf:
                      - type: string
                        enum:
                          - '2.0'
                  error:
                    allOf:
                      - type: object
                        properties:
                          code:
                            type: integer
                          message:
                            type: string
                refIdentifier: '#/components/schemas/ErrorResponse'
              examples:
                example:
                  value:
                    jsonrpc: '2.0'
                    error:
                      code: -32002
                      message: Service unavailable
                    id: db16f277-1a22-41ff-9f85-f37e2cd77900
        '504':
          description: Gateway Timeout - The request timed out.
          content:
            application/json:
              schema:
                type: object
                properties:
                  jsonrpc:
                    allOf:
                      - type: string
                        enum:
                          - '2.0'
                  error:
                    allOf:
                      - type: object
                        properties:
                          code:
                            type: integer
                          message:
                            type: string
                refIdentifier: '#/components/schemas/ErrorResponse'
              examples:
                example:
                  value:
                    jsonrpc: '2.0'
                    error:
                      code: -32003
                      message: Gateway timeout
                    id: db16f277-1a22-41ff-9f85-f37e2cd77900
      security:
        - ApiKeyQuery: []
components:
  securitySchemes:
    ApiKeyQuery:
      type: apiKey
      in: query
      name: api_key

````