> 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/subscribe.md).

# subscribe

Subscribe establishes a bidirectional streaming connection with the Geyser service to receive real-time updates about Solana blockchain events.

#### **Parameters:**

blockhash - bytes - The blockhash you want to validate

#### **Returns:**

result - object - The result representing the return value of a bidirectional stream method call with a Geyser gRPC subscription request and subscription update

#### Example:

{% code overflow="wrap" %}

```json
grpcurl -proto geyser.proto
-d '{"slots": {}, "accounts": { }, "transactions": {}, "blocks": { "blocks": {"include_transactions": false, "include_accounts": true} }, "blocks_meta": {}, "accounts_data_slice": []}'
-H "x-token: <your-token>" 
solana.blockpi.network
geyser.Geyser/Subscribe
```

{% endcode %}
