getBlockTime
Returns the estimated production time of a block. Each validator reports their UTC time to the ledger on a regular interval by intermittently adding a timestamp to a Vote for a particular block. A requested block's time is calculated from the stake-weighted mean of the Vote timestamps in a set of recent blocks recorded on the ledger. Parameters
slot(required) — Slot number.
Pass Authorization: <api-key> on each request.
JSON-RPC protocol version.
2.0Possible values: Request identifier echoed back in the response.
1Must be getBlockTime.
getBlockTimePossible values: Successful getBlockTime response.
Base envelope of every JSON-RPC 2.0 response.
2.0Possible values: Echoed request id.
1Authentication required or invalid.
Insufficient permissions for the request.
Rate limit exceeded for this tier.
Unexpected server error.
curl -X POST https://public.rpc.solanavibestation.com/historical \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"id": 1,
"method": "getBlockTime",
"params": [
178000000
]
}'{
"jsonrpc": "2.0",
"id": 1,
"result": 1700000000
}Last updated