> ## 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

**x-token** `string` *required*

Your Helius API key. You can get one for free in the
[dashboard](https://dashboard.helius.dev/api-keys).

## Message

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

```json Empty Request theme={"system"}
{}
```

## Response

**slot** `string`

The current slot number.

**blockhash** `string`

The latest blockhash as a base-58 encoded string.

**last\_valid\_block\_height** `string`

The last block height at which the returned blockhash will be valid.

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


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