Skip to main content

getBlockTime RPC Method

Returns the estimated production time of a block.

Updated on
Sep 20, 2024

getBlockTime RPC Method

Parameters

u64
integer
REQUIRED
The block number, identified by Slot

Returns

result
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
Request
1
curl https://docs-demo.solana-mainnet.quiknode.pro/ \
2
-X POST \
3
-H "Content-Type: application/json" \
4
--data '{"jsonrpc":"2.0","id":1, "method":"getBlockTime","params":[94101948]}'
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free