getBlockTime - Solana

getBlockTime. Retrieves the estimated production time of a specific block

getBlockTime - solana [Value: 9CU]
Retrieves the estimated production time of a specific block
Use cases

Use cases

  • Retrieve timestamp of a specific block for verification
  • Analyze block times to monitor network performance trends
  • Validate transaction timing within specific block intervals
Constraints

Constraints

  • Requires a valid block number parameter
  • Network latency can impact response accuracy
  • High request volume may lead to rate limiting
Get started
Unlock Access to 50+ chains
Boost your app's speed and reliability with dRPC - get your access API key

Language

Request
Examples
curl --request POST \
     --url https://solana.drpc.org \
     --header 'accept: application/json' \
     --header 'content-type: application/json' \
     --data '
{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "getBlockTime",
  "params": [
    165768577
  ]
}
'
Copy
Response
200
{
  "id": 0,
  "jsonrpc": "string",
  "result": 0
}
Copy

Request params

idinteger
jsonrpcstring
methodstring
Parametersarray of objects
array of objects
blockNumberstring
The number of the block for which to retrieve the production time.

Response

200
The estimated Unix timestamp of the block's production time, returned as an integer.

Response params

string
idinteger
jsonrpcstring
resultstring