Using Superfluid on the backend using nodejs
Overview
Superfluid is used to flow value for capital efficiency. This allows users to send a steady flow of funds to a user.
The dashboard is a quick way to get started with a nice GUI .
https://app.superfluid.finance/
But what if you want to flow funds on a server?
This article will explain how to start and stop a flow in the backend using Node.js.
Requirements
Some quirks: We will use both webjs and ethers to initialize the flow. Webjs will be the provider, while ethers will create and send the transaction.
Start Flow
To install the Superfluid JS SDK, you can run the following command (make sure that you include the truffle contract peer dependency)
yarn add @superfluid-finance/js-sdk @truffle/contract
View Flow On Dashboard
Once the flow is created, both you and the user can view their flow on the dashboard.
Stop Flow
Verify Flow Has Stopped
Once the flow is stopped, both you and the user can view on the dashboard.