Converts a Uint8Array of bytes to a number.
import { bytesToNumber } from "thirdweb/utils";const bytes = new Uint8Array([1, 164]);const number = bytesToNumber(bytes);console.log(number); // 420
function bytesToNumber( bytes: Uint8Array, opts: BytesToBigIntOpts,): number;
The Uint8Array of bytes to convert.
let bytes: Uint8Array;
Optional configuration options.
let opts: BytesToBigIntOpts;
let returnType: number;
The converted number.