Skip to content

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.

superfluid:stream <rate> <token> <to> <receiver>
NameTypeEvaluationDescription
ratenumberRuntime in smart blocksFlow rate in wei per second, e.g. 1000e18/mo
tokensupertokenBuild timeSuperToken symbol (e.g. USDCx) or address
tocommandBuild timeKeyword to
receiveraddressRuntime in smart blocksStream receiver
NameTypeEvaluationDescription
--fromaddressRuntime in smart blocksStream sender when acting as a flow operator (requires prior grant-flow-operator by the sender)
--user-databytesRuntime in smart blocksArbitrary user data forwarded to stream hooks
# 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 sender
load superfluid [stream]
stream 500e18/mo xDAIx to 0x8790B75cF2BD36a2502A24e0E16AA1B23eBeBC71 --from 0x4F2083f5fBede34C2714aFfb3105539775f7FE64