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
- Retrieve timestamp of a specific block for verification
- Analyze block times to monitor network performance trends
- Validate transaction timing within specific block intervals
Constraints
- Requires a valid block number parameter
- Network latency can impact response accuracy
- High request volume may lead to rate limiting
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
]
}
'
Response
200
{
"id": 0,
"jsonrpc": "string",
"result": 0
}
Request params
idinteger
jsonrpcstring
methodstring
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