> For the complete documentation index, see [llms.txt](https://docs.zebec.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.zebec.io/zebec-evm/zebec-evm-sdk/zebec-stream-client.md).

# Zebec Stream Client

ZebecStreamClient is a client library that provides an interface to interact with the Zebec Stream smart contract. It allows you to perform various operations such as initiating streams, withdrawing tokens, updating streams, and more.

### Installation

To use the ZebecStreamClient library, you need to have the `zebec-bnb-sdk` package installed in your project. You can install them using npm:

```shell
npm install @zebec-protocol/zebec-bnb-sdk
```

### Environment Setup

To Setup the environment checkout the .env.example at [https://github.com/Zebec-protocol/bnb-zebec-sdk](#environment-setup).&#x20;

<table><thead><tr><th>Variables</th><th width="240.33333333333331">Description</th><th>Values</th></tr></thead><tbody><tr><td>CHAIN_ID</td><td>Chain Ids</td><td>56, 22222(Nautilus), 5, 97</td></tr><tr><td>SDK_ENV</td><td>Environment to work on : "production" or "test"</td><td>"production" if you are working on mainnet and "test" for testnets</td></tr></tbody></table>

### Test Code

The [test code ](https://github.com/Zebec-protocol/bnb-zebec-sdk/blob/main/test/integration/stream/stream.spec.ts)can also serve as a reference for how to use the `ZebecStreamClient` class in practice.[ ](#user-content-fn-1)[^1]

[^1]:


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.zebec.io/zebec-evm/zebec-evm-sdk/zebec-stream-client.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
