> ## Documentation Index
> Fetch the complete documentation index at: https://docs.validationcloud.io/llms.txt
> Use this file to discover all available pages before exploring further.

# getBlockTime

Returns the estimated production time of a block.

This method will use `30` [Compute Units](/nodeapi/about/billing).

***

## **Parameters**

* `u64` integer *<span style={{color: "red"}}>Required</span>*. The block number, identified by Slot.

## Returns

* `result` The response can be either:
  * `i64`. The estimated production time, as Unix timestamp (seconds since the Unix epoch).
  * `null`. If timestamp is not available for the block.

```json theme={"theme":{"light":"github-light","dark":"github-dark-default"}}
// Result
{
	"jsonrpc": "2.0",
	"result": 1739185378,
	"id": 1
}
```

<CodeGroup>
  ```bash title="mainnet" theme={"theme":{"light":"github-light","dark":"github-dark-default"}}
  curl https://mainnet.solana.validationcloud.io/v1/<YOUR_API_KEY_HERE> \
      -X POST \
      -H "Content-Type: application/json" \
      -d '{"jsonrpc":"2.0","id":1, "method":"getBlockTime","params":[319712626]}'
  ```

  ```bash title="devnet" theme={"theme":{"light":"github-light","dark":"github-dark-default"}}
  curl https://devnet.solana.validationcloud.io/v1/<YOUR_API_KEY_HERE> \
      -X POST \
      -H "Content-Type: application/json" \
      -d '{"jsonrpc":"2.0","id":1, "method":"getBlockTime","params":[94101948]}'
  ```
</CodeGroup>


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.