Skip to content

@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

@superfluid:balance(token account?)
NameTypeDescription
tokensupertokenSuperToken symbol or address
[account]addressAccount to inspect (defaults to the connected account)
# Print your real-time xDAIx balance (streaming balance minus buffers)
print "Balance:" @superfluid:balance(xDAIx)

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.