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() // 42nnew Nonce("0x1a").toBigInt() // 26nnew Nonce(7).toBigInt() // 7n Copy
new Nonce("42").toBigInt() // 42nnew Nonce("0x1a").toBigInt() // 26nnew Nonce(7).toBigInt() // 7n
Readonly
Normalized nonce wrapper. The API returns nonces inconsistently as JSON numbers, decimal strings, or hex strings. This class normalizes all formats to bigint.
Example