getBlocksWithLimit

Returns a list of confirmed blocks starting at the given slot.

Parameters

  • start_slot: integer
    • REQUIRED
    • The start slot encoded as a u64 integer.
  • limit: integer
    • REQUIRED
    • The limit encoded as a u64, 64-bit unsigned integer.
  • object: array
    • The configuration object with the following fields:
      • commitment: string
        • The level of commitment required for the query. It can be one of:
          • finalized: The node will query the most recent block confirmed by supermajority of the cluster as having reached maximum lockout, meaning the cluster has recognized this block as finalized.
          • confirmed: The node will query the most recent block that has been voted on by supermajority of the cluster.

Returns

  • result: An array of u64 integers listing confirmed blocks between the start_slot and either end_slot - if provided, or latest confirmed block, inclusive. The maximum range allowed is 500,000 slots.
Language
Authorization
Header
Click Try It! to start a request and see the response here!