getBlockTime | Solana

Solana getBlockTime method

The Solana getBlockTime method returns the estimated production time of a block.

This method provides the Unix timestamp at which the block was produced. It is useful for tracking the timing of transactions and events on the blockchain.

πŸ‘

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 the production time for.

Response

  • value β€” the estimated Unix timestamp at which the block was produced.

Use case

A practical use case for getBlockTime is to track the timing of transactions and events on the blockchain. This can be useful for block explorers, wallets, or other applications that need to display or make use of this information.

Try the getBlockTime RPC method yourself

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