Converts a Uint8Array of bytes to a bigint.
import { bytesToBigInt } from "thirdweb/utils";const bytes = new Uint8Array([1, 164]);const bigInt = bytesToBigInt(bytes);console.log(bigInt); // 420n
function bytesToBigInt( bytes: Uint8Array<ArrayBufferLike>, opts: BytesToBigIntOpts,): bigint;
The Uint8Array of bytes to convert.
let bytes: Uint8Array<ArrayBufferLike>;
Optional parameters for the conversion.
let opts: { signed?: boolean; size?: number };
let returnType: bigint;
The converted bigint.