• Converts Bytes into signed BigInt.

    Example

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

    const bytesData = Bytes.fromHexString("0xd704");
    bytes.toSignedBigInt(bytesData); // => -10492

    Returns

    the signed 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