Skip to content

Find the balance amount for a specific token ID at a specific time within a set of balances. Returns x0 if not found.

getBalanceForIdAndTime<T>(id, time, balances): T

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

Find the balance amount for a specific token ID at a specific time within a set of balances. Returns x0 if not found.

Type Parameters

T

T extends NumberType

Parameters

id

T

The Token ID to search for.

time

T

The time to search for.

balances

iBalance<T>[]

The set of balances to search.

Returns

T

Remarks

Can also be used via the corresponding method with same name on BalanceArray

Edit this page on GitHub