Skip to content

Convert UintRange array from SDK format to JSON format (strings for bigint values)

convertUintRanges(ranges): object[]

Defined in: packages/bitbadgesjs-sdk/src/transactions/precompile/helpers.ts:91

Convert UintRange array from SDK format to JSON format (strings for bigint values)

Parameters

ranges

UintRange<string | bigint>[]

Array of UintRange from SDK (can be string or bigint)

Returns

object[]

Array of {start: string, end: string} for JSON serialization

Edit this page on GitHub