Skip to content

Gets the balances for specified ID ranges.

getBalancesForIds<T>(idRanges, times, balances): BalanceArray<T>

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

Gets the balances for specified ID ranges.

Returns a BalanceArray.From<T> where only the specified ID ranges and their balances are included. Sets balance amount == 0 objects for IDs that are not found.

Type Parameters

T

T extends NumberType

Parameters

idRanges

iUintRange<T>[]

times

iUintRange<T>[]

balances

iBalance<T>[]

Returns

BalanceArray<T>

Remarks

Returns a new object but also modifies the original.

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

Edit this page on GitHub