Skip to content

Returns the balance amount for a specific token ID at the current time (Date.now()). Convenience wrapper around getBalanceForIdAndTime.

getBalanceForIdNow<T>(id, balances): T

Defined in: packages/bitbadgesjs-sdk/src/core/balances.ts:165

Returns the balance amount for a specific token ID at the current time (Date.now()). Convenience wrapper around getBalanceForIdAndTime.

Type Parameters

T

T extends NumberType

Parameters

id

T

The token ID to search for.

balances

iBalance<T>[]

The set of balances to search.

Returns

T

Edit this page on GitHub