Normalized nonce wrapper. The API returns nonces inconsistently as JSON numbers, decimal strings, or hex strings. This class normalizes all formats to bigint.

new Nonce("42").toBigInt()    // 42n
new Nonce("0x1a").toBigInt() // 26n
new Nonce(7).toBigInt() // 7n

Constructors

Properties

Methods

Constructors

Properties

value: bigint

Methods