function getUint(value, name?): bigint

Returns value as a bigint, validating it is valid as a bigint value and that it is positive.

Parameters

ParameterTypeDescription
valueBigNumberishThe value to convert.
name?stringThe name of the value.

Returns

bigint

The value.

Throws

If the value is negative.

Source

utils/maths.ts:170