getSlot

Returns the slot that has reached the given or default commitment level.

Parameters

  • object: An array with the following fields:
    • commitment: The level of commitment required for the query. The options include:
      • finalized: The node will query the most recent block confirmed by the 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 the supermajority of the cluster.
      • processed: The node will query its most recent block. Note that the block may not be complete.
    • minContextSlot (optional): The minimum slot at which the request can be evaluated.

Returns

  • result: Returns the current slot number.
Language
Authorization
Header
Click Try It! to start a request and see the response here!