Solana Tracker
Solana RPC/Methods

getBlockTime RPC Method

Description

Returns the estimated production time of a block.

Parameters

  1. u64 (integer, required) - The block number, identified by Slot

Returns

The response can be either of one value:

  • i64 - The estimated production time, as Unix timestamp (seconds since the Unix epoch)
  • null - If timestamp is not available for the block

Code Examples

curl "https://rpc-mainnet.solanatracker.io/?api_key=YOUR_API_KEY_HERE" \
  -X POST \
  -H "Content-Type: application/json" \
  --data '{"jsonrpc":"2.0","id":1, "method":"getBlockTime","params":[94101948]}'

On this page