SDK Core
Stream money with the Constant Flow Agreement using the SDK Core
Accessing the CFAv1 Contract
// refresher on initializing the Framework
import { Framework } from "@superfluid-finance/sdk-core";
import { ethers } from "ethers";
const sf = await Framework.create({
chainId: 137,
provider
});
// access the cfaV1 object and get a flow via the created Framework class
const flowInfo = await sf.cfaV1.getFlow({
superToken: "0x...",
sender: "0x...",
receiver: "0x...",
providerOrSigner: "0x..."
});Methods
Read Methods
Write Methods
Create, Update, Delete
Create, Update, Delete with ACL Permissions
Manage ACL Permissions
Example Usage
Last updated