0.01 credits per call
getBlockTime on Solana: Returns the estimated production time of a block.
Endpoint
Authorization: Bearer <GOLDRUSH_API_KEY>. See authentication.
Parameters
| Name | Type | Required | Description | Example |
|---|---|---|---|---|
slot | u64 | yes | Slot to look up. | 372877175 |
Returns
i64 | null: Unix timestamp in seconds, or null if unavailable.
Examples
Errors
| Code | Message |
|---|---|
-32004 | Block not available for the requested slot. |
-32600 invalid request, -32601 method not found, -32602 invalid params.