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

# isBlockhashValid

> Returns whether a blockhash is still valid or not

### Parameters

<ParamField query="chainId" type="string" default="solana-devnet" required>
  Unique identifier for a blockchain network.
</ParamField>

<ParamField body="id" type="number" default={1} required>
  Request identifier used to match responses.
</ParamField>

<ParamField body="jsonrpc" type="string" default="2.0" required>
  JSON-RPC version.
</ParamField>

<ParamField body="method" type="string" default="isBlockhashValid" required>
  JSON-RPC method name.
</ParamField>

<ParamField body="params" type="object" default={["J7rBdM6AecPDEZp8aPq5iPSNKVkU5Q76F3oAV4eW5wsW",{"commitment":"processed"}]} placeholder="[&#x22;J7rBdM6AecPDEZp8aPq5iPSNKVkU5Q76F3oAV4eW5wsW&#x22;,{&#x22;commitment&#x22;:&#x22;processed&#x22;}]" required>
  Parameters for method isBlockhashValid: \[blockhash, config]

  Positional parameters for <code>isBlockhashValid</code>:

  <ul>
    <li><code>params\[0]</code>: The blockhash to evaluate (base-58 encoded string).</li>
    <li><code>params\[1]</code>: Optional configuration object.</li>
  </ul>
</ParamField>

### Returns

<ResponseField name="result" type="boolean">
  Boolean - returns whether the blockhash is still valid. Example: <code>true</code>.
</ResponseField>

<RequestExample>
  ```bash Curl theme={null}
  curl --request POST \
    --url https://api.uniblock.dev/uni/v1/json-rpc?chainId=solana-devnet \
    --header 'content-type: application/json' \
    --data '{
      "id": 1,
      "jsonrpc": "2.0",
      "method": "isBlockhashValid",
      "params": [
        "J7rBdM6AecPDEZp8aPq5iPSNKVkU5Q76F3oAV4eW5wsW",
        {
          "commitment": "processed"
        }
      ]
    }'
  ```
</RequestExample>

<ResponseExample>
  ```json Success theme={null}
  {
    "jsonrpc": "2.0",
    "id": 1,
    "result": true
  }
  ```
</ResponseExample>
