Ask or search…
K
Links
Comment on page

getFlow

Get information regarding a stream going from a sender to a receiver for a specified Super Token
//load the token you'd like to use like this
//note that tokens may be loaded by symbol or by address
const daix = await sf.loadSuperToken("DAIx");
let res = await daix.getFlow({
sender: string,
receiver: string,
providerOrSigner: ethers.providers.Provider | ethers.Signer
});

Parameters

Parameter
Type
Description
sender
string
Address of sender
receiver
string
Address of receiver
providerOrSigner
ethers.providers.Provider or ethers.Signer
ethers provider or ethers signer object

Return Value(s)

Returns a JSON object literal with the below info:
Key
Value Type
Value Description
timestamp
Date
Timestamp when the stream of superToken was last updated by the account
flowRate
string
Flow rate (wei/second) of the stream. Always zero or positive.
deposit
string
Buffer deposit held for the stream
owedDeposit
string
Additional deposit if the stream is to a Super App

Example Usage