• Converts BigInt into Bytes.

    Example

    import { integers } from "@protofire/subgraph-devkit";
    import { BigInt } from "@graphprotocol/graph-ts";

    const n = BigInt.fromI32(100);
    integers.toBytes(n);

    Returns

    the Bytes representation of the BigInt.

    Parameters

    • value: BigInt

      the BigInt number.

    • bigEndian: bool = true

      whether the bytes are big endian or not.

    Returns Bytes

Generated using TypeDoc