@superfluid:balance
Real-time available SuperToken balance of an account: the streaming balance at this instant, minus buffer deposits. Negative when the account is critical.
Returns: number
Syntax
Section titled “Syntax”@superfluid:balance(token account?)Arguments
Section titled “Arguments”| Name | Type | Description |
|---|---|---|
token | supertoken | SuperToken symbol or address |
[account] | address | Account to inspect (defaults to the connected account) |
Examples
Section titled “Examples”# Print your real-time xDAIx balance (streaming balance minus buffers)print "Balance:" @superfluid:balance(xDAIx)