getBlockTime - Solana
The getBlockTime method retrieves the estimated production time of a block by its slot number, returning a UNIX timestamp.
Supported Networks
Parameters
Request
https://go.getblock.io/<ACCESS-TOKEN>/Example (cURL):
curl --location "https://go.getblock.io/<ACCESS-TOKEN>/" -XPOST \
--header "Content-Type: application/json" \
--data '{
"jsonrpc": "2.0",
"id": 1,
"method": "getBlockTime",
"params": [122791192]
}'Response
Use Case
Error Handling
Example Error Response:
Code getBlockTime Example - Web3 Integration
Integration with Web3
Last updated
Was this helpful?