Skip to main content

getBlockTime RPC Method

Loading...

Updated on
Apr 30, 2025

getBlockTime RPC Method

Parameters

u64
integer
REQUIRED
Loading...

Returns

result
Loading...
i64
Loading...
null
Loading...
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]}'
Response
1
{
2
"jsonrpc": "2.0",
3
"result": 1630351521,
4
"id": 1
5
}
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free