getBlock | Solana

Solana getBlock method

The Solana getBlock method returns complete information about a block for a given block height.

This method provides detailed information about the block, including its parent block, transactions, and the state of the ledger after processing the block. It is useful for retrieving the state of the blockchain at a specific block height.

πŸ‘

Get you own node endpoint today

Start for free and get your app to production levels immediately. No credit card required.

You can sign up with your GitHub, X, Google, or Microsoft account.

Parameters

  • block β€” the height of the block to retrieve information for.

Response

  • blockhash β€” the hash of the block.
  • parentSlot β€” the slot of the block's parent.
  • previousBlockhash β€” the hash of the block's parent.
  • rewards β€” an array of reward objects that were awarded when the block was processed.
  • transactions β€” an array of transaction objects that were processed in the block.

Use case

A practical use case for getBlock is to retrieve detailed information about a specific block. This can be useful for block explorers, wallets, or other applications that need to display or make use of this information.

Try the getBlock RPC method yourself

Language
Click Try It! to start a request and see the response here!