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

# GetBlockHeight

> 使用 LaserStream gRPC API 获取 Solana 当前的区块高度。

<hide>
  ## Endpoints

  gRPC 服务在主网和开发网可用，使用以下 URL：

  * **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>
  您的 Helius API 密钥。您可以在
  [dashboard](https://dashboard.helius.dev/api-keys) 免费获取一个。
</ParamField>

## Message

此方法接受一个空请求并返回当前的区块高度。

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

## Response

<ResponseField name="blockHeight" type="integer">
  Solana 区块链的当前区块高度。
</ResponseField>

<ResponseExample>
  ```json Block Height Response theme={"system"}
  {
    "blockHeight": 189554321
  }
  ```
</ResponseExample>
