@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.
⚗️ Experimental — available at next.evmcrispr.com.
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)See Also
Section titled “See Also”On-chain face (@balance!)
Section titled “On-chain face (@balance!)”Read realtimeBalanceOfNow(account) at assertion time and pick the available balance (word 0, already net of the buffer), so the value is the balance the batch itself sees streaming. Signed: a critical account reads negative.