bytesToBigInt

Converts a Uint8Array of bytes to a bigint.

Example

import { bytesToBigInt } from "thirdweb/utils";
const bytes = new Uint8Array([1, 164]);
const bigInt = bytesToBigInt(bytes);
console.log(bigInt); // 420n

Parameters

Returns

The converted bigint.