> For the complete documentation index, see [llms.txt](https://docs.blockpi.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.blockpi.io/build/api-reference/solana/yellowstone-grpc/getlatestblockhash.md).

# getLatestBlockhash

Retrieves the latest blockhash from the Solana blockchain, along with its associated slot and last valid block height.

#### **Parameters:**

**None**

#### **Returns:**

slots - tring - The slot number associated with the latest blockhash.

blockhash - string - The latest blockhash

lastValidBlockHeight - string - The last block height at which the retrieved blockhash is valid

#### Example:

{% code overflow="wrap" %}

```json
grpcurl -proto geyser.proto
-H "x-token: <your-token>" 
-d '{}' 
solana.blockpi.network
geyser.Geyser/GetBlockHeight/GetLatestBlockhash
```

{% endcode %}
