> For the complete documentation index, see [llms.txt](https://docs.triton.one/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.triton.one/solana/rpc-methods/real-time-streaming/yellowstone-grpc/unary-calls/getlatestblockhash.md).

# getLatestBlockhash (gRPC)

Returns the latest blockhash, its slot, and lastValidBlockHeight at a commitment level over Dragon's Mouth gRPC (geyser.Geyser/GetLatestBlockhash).

## Request

{% tabs %}
{% tab title="grpcurl" %}

```bash
# <proto-dir>: a folder holding geyser.proto and solana-storage.proto (the server has no gRPC reflection)
grpcurl \
  -proto geyser.proto -import-path <proto-dir> \
  -d '{ "commitment": "FINALIZED" }' \
  -H "x-token: <your-token>" \
  <your-endpoint>.mainnet.rpcpool.com:443 \
  geyser.Geyser/GetLatestBlockhash
```

{% endtab %}
{% endtabs %}

## Parameters

**`commitment`** · CommitmentLevel · optional

Commitment level for the query: `PROCESSED`, `CONFIRMED`, or `FINALIZED`. Defaults to `PROCESSED`.

## Response

```json
{
  "slot": "317704512",
  "blockhash": "EkSnNWid2cvwEVnVx9aBqawnmiCNiDgp3gUdkDPTKN1N",
  "lastValidBlockHeight": "317704812"
}
```

## Result

**`slot`** · uint64: Slot at which the blockhash was taken. **`blockhash`** · string: The latest blockhash, base-58 encoded. **`lastValidBlockHeight`** · uint64: Block height of the returned block plus 300. A blockhash stops being accepted at a lower block height than this, so do not use it as an expiry height.

***

<i class="fa-life-ring">:life-ring:</i> Contact support by clicking the chat icon in your [customer dashboard](https://customers.triton.one)\ <i class="fa-briefcase">:briefcase:</i> Sales questions? [Contact us](https://triton.one/contact)\ <i class="fa-sparkles">:sparkles:</i> AI agent? Read [llms.txt](https://docs.triton.one/llms.txt)\ <i class="fa-rss">:rss:</i> Follow updates: [Blog](https://blog.triton.one) · [X](https://x.com/triton_one) · [YouTube](https://www.youtube.com/@triton_one_ltd) · [Telegram](https://t.me/tritonone) · [GitHub](https://github.com/rpcpool)
