superfluid:stream
Open a money stream of a SuperToken to a receiver, or retarget an existing one to the new rate (idempotent). Rates are wei per second — use a rate literal like 1000e18/mo. Opening a stream locks a buffer deposit (hours of streaming) that is refunded when the stream stops.
⚗️ Experimental — available at next.evmcrispr.com.
Supports runtime fields inside smart blocks. Use explicit @helper! expressions or captured outputs; other fields are evaluated at build time.
Syntax
Section titled “Syntax”superfluid:stream <rate> <token> <to> <receiver>Arguments
Section titled “Arguments”| Name | Type | Evaluation | Description |
|---|---|---|---|
rate | number | Runtime in smart blocks | Flow rate in wei per second, e.g. 1000e18/mo |
token | supertoken | Build time | SuperToken symbol (e.g. USDCx) or address |
to | command | Build time | Keyword to |
receiver | address | Runtime in smart blocks | Stream receiver |
Options
Section titled “Options”| Name | Type | Evaluation | Description |
|---|---|---|---|
--from | address | Runtime in smart blocks | Stream sender when acting as a flow operator (requires prior grant-flow-operator by the sender) |
--user-data | bytes | Runtime in smart blocks | Arbitrary user data forwarded to stream hooks |
Examples
Section titled “Examples”# Stream 1000 xDAIx a month to a contributor on Gnosis (idempotent: re-run with a new rate to change it)superfluid:stream 1000e18/mo xDAIx to 0x8790B75cF2BD36a2502A24e0E16AA1B23eBeBC71
# Raise an existing stream as a flow operator on behalf of the senderload superfluid [stream]
stream 500e18/mo xDAIx to 0x8790B75cF2BD36a2502A24e0E16AA1B23eBeBC71 --from 0x4F2083f5fBede34C2714aFfb3105539775f7FE64