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
1curl 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