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

# GetLatestBlockhash

> Get the latest blockhash from the Solana blockchain using the LaserStream gRPC API.

<hide>
  ## Endpoints

  gRPC services are available on mainnet and devnet with the following URLs:

  * **Mainnet** `https://laserstream-mainnet.helius-rpc.com:443`
  * **Devnet** `https://laserstream-devnet.helius-rpc.com:443`
</hide>

## Authorizations

<ParamField query="x-token" type="string" required>
  Your Helius API key. You can get one for free in the
  [dashboard](https://dashboard.helius.dev/api-keys).
</ParamField>

## Message

This method takes an empty request and returns the latest blockhash and its corresponding last valid block height.

<RequestExample>
  ```json Empty Request theme={"system"}
  {}
  ```
</RequestExample>

## Response

<ResponseField name="slot" type="string">
  The current slot number.
</ResponseField>

<ResponseField name="blockhash" type="string">
  The latest blockhash as a base-58 encoded string.
</ResponseField>

<ResponseField name="last_valid_block_height" type="string">
  The last block height at which the returned blockhash will be valid.
</ResponseField>

<ResponseExample>
  ```json Latest Blockhash Response theme={"system"}
  {
    "slot": "333390974",
    "blockhash": "CiqX6nU67eVCFqxh6TJ3LF8bDqjtnD2wULRMME917QSY",
    "last_valid_block_height": "311630163"
  }
  ```
</ResponseExample>
