SDK, contract addresses, quickstart guides, and examples. Go from zero to first stream in under 10 minutes.
npm install @growstreams/sdkThree calls. Under 30 lines. Live in minutes.
1"text-purple-400">import { GrowStreams } "text-purple-400">from '@growstreams/sdk';23"text-provn-">muted">// Initialize the SDK4"text-purple-400">const gs = "text-purple-400">new GrowStreams({5 network: 'vara-testnet',6 signer: wal"text-purple-400">letSigner,7});89"text-provn-">muted">// Step 1: Deposit tokens into vault10"text-purple-400">await gs.vault.deposit({11 token: 'USDC',12 amount: '1000',13 buffer: '4h',14});1516"text-provn-">muted">// Step 2: Create a stream17"text-purple-400">const stream = "text-purple-400">await gs.stream.create({18 receiver: '0xBob...address',19 token: 'USDC',20 flowRate: '0.000277', "text-provn-">muted">// ~$1/hr21});2223console.log('Stream created:', stream.id);24"text-provn-">muted">// Stream is now live — Bob earns every second!2526"text-provn-">muted">// Step 3: Receiver withdraws anytime27"text-purple-400">await gs.stream.withdraw({28 streamId: stream.id,29 amount: 'max', "text-provn-">muted">// or specific amount30});All methods available in @growstreams/sdk
vault.deposit()Deposit tokens + set buffervault.withdraw()Withdraw unused depositvault.getBalance()Check vault balancestream.create()Start a new streamstream.update()Change flow ratestream.stop()Stop and close streamstream.withdraw()Receiver claims fundsstream.getActive()List active streamsstream.getBalance()Real-time balancesplits.create()Create a split configsplits.update()Update weightssplits.distribute()Trigger distributionDeployed on Vara Testnet. Mainnet addresses coming soon.
| Contract | Address | Network |
|---|---|---|
| StreamCore | 0x7f3a...b2c1 | Vara Testnet |
| TokenVault | 0x4d2e...a8f3 | Vara Testnet |
| SplitsRouter | 0x9c1b...d4e7 | Vara Testnet |
| PermissionManager | 0x2a5f...c6b9 | Vara Testnet |
| BountyAdapter | 0x6e8d...f1a2 | Vara Testnet |
Currently USDC and VARA on Vara Testnet. More tokens will be added progressively. The protocol is token-agnostic — any ERC-20 compatible token can be streamed.
When creating a stream, the sender must deposit a buffer (e.g., 4 hours of flow). This guarantees the receiver will be paid. If the buffer depletes, the stream auto-pauses.
Yes! Use the SplitsRouter to define weighted distributions. One incoming stream can be split to N receivers (e.g., 60% developer, 30% reviewer, 10% platform).
No hard minimum, but gas costs on Vara are extremely low (~$0.001). Practically, any amount above $0.01/hour is viable.
Install the SDK (`npm i @growstreams/sdk`), connect a signer, and call `stream.create()`. Most integrations take under 10 minutes.