Skip to content

Convert a Uint64Like to a bigint, rejecting anything that cannot represent a uint64 exactly. This is the single conversion point for account numbers and…

toUint64(value, label?): bigint

Defined in: packages/bitbadgesjs-sdk/src/transactions/messages/common.ts:25

Convert a Uint64Like to a bigint, rejecting anything that cannot represent a uint64 exactly. This is the single conversion point for account numbers and sequences — a number above 2^53 has ALREADY lost precision by the time it gets here, so it is rejected loudly instead of silently signing for the wrong account.

Parameters

value

Uint64Like

label?

string = 'value'

Returns

bigint

Edit this page on GitHub