• Converts Bytes into unsigned BigInt.

    Example

    import { bytes } from "@protofire/subgraph-devkit";

    const bytesData = Bytes.fromHexString("0x28fc");
    bytes.toUnsignedBigInt(bytesData); // => 10492

    Returns

    the unsigned BigInt representation of the Bytes.

    Parameters

    • bytes: Bytes

      the Bytes.

    • bigEndian: bool = true

      whether the bytes are big endian or not.

    Returns BigInt

Generated using TypeDoc