Skip to content

superfluid:schedule-flow

Schedule a stream to start and/or end at future timestamps, executed by Superfluid's keeper network. Automatically grants the FlowScheduler the flow-operator permissions it needs (create for --start, delete for --end) plus a SuperToken allowance when --start-amount is set. At least one of --start / --end is required; execution is permissionless but not guaranteed if the grants are revoked.

superfluid:schedule-flow <rate> <token> <to> <receiver>
NameTypeDescription
ratenumberFlow rate in wei per second (e.g. 1000e18/mo); may be 0 for end-only schedules
tokensupertokenSuperToken symbol (e.g. USDCx) or address
tocommandKeyword to
receiveraddressStream receiver
NameTypeDescription
--startnumberUnix timestamp at which the keeper opens the stream
--start-windownumberHow long after --start the keeper may still open the stream (default 3d)
--endnumberUnix timestamp at which the keeper closes the stream
--start-amountnumberOptional lump-sum SuperToken transfer when the stream starts (needs an allowance, granted automatically)
--no-approveboolSkip the automatic permission grant and allowance actions
# Schedule a salary stream to open on Jan 1st 2034 and close a year later, run by Superfluid keepers
superfluid:schedule-flow 1000e18/mo xDAIx to 0x8790B75cF2BD36a2502A24e0E16AA1B23eBeBC71 --start 2019686400 --end 2051222400