IMPORTANT NOTEThe JS-SDK is a legacy SDK that is no longer being maintained. We strongly recommend that new developers use the SDK-Core or SDK-Redux.β
sender
to a receiver
at a constant flowRate
measured in amount per second.User
object for Bob. 385802469135802
? This is the amount of DAIx to transfer per second, which is equivalent to 1000 DAIx per month.details()
to see a bunch of info about our user:flow()
again, we can edit this stream:0
value:recipient
where DAIx should flow.createFlow()
, we pass the arguments for the DAIx token, sender, receiver, and the amount "385802469135802"HUH?! How is bob able to send 1000 DAIx per month if he only has 50 Superfluid enabled DAI? The answer is that the sender isn't required to have the full amount to start a flow. The flow will continue to run as long as he has DAIx.
Note: These amounts will not add up to 50 DAIx, due to a refundable deposit.
getNetFlow()
to see the flow we just created.deleteFlow()
and select the flow between bob and alice.