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