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

> Lấy blockhash mới nhất từ blockchain Solana bằng API LaserStream gRPC.

<hide>
  ## Điểm cuối

  Các dịch vụ gRPC có sẵn trên mainnet và devnet tại các URL sau:

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

## Xác thực

<ParamField query="x-token" type="string" required>
  Khóa API Helius của bạn. Bạn có thể nhận khóa miễn phí trong
  [bảng điều khiển](https://dashboard.helius.dev/api-keys).
</ParamField>

## Thông điệp

Phương thức này nhận một yêu cầu trống và trả về blockhash mới nhất cùng chiều cao khối hợp lệ cuối cùng tương ứng.

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

## Phản hồi

<ResponseField name="slot" type="string">
  Số slot hiện tại.
</ResponseField>

<ResponseField name="blockhash" type="string">
  Blockhash mới nhất dưới dạng chuỗi được mã hóa base-58.
</ResponseField>

<ResponseField name="last_valid_block_height" type="string">
  Chiều cao khối cuối cùng mà tại đó blockhash được trả về vẫn còn hợp lệ.
</ResponseField>

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