Converts BigInt into Bytes.
import { integers } from "@protofire/subgraph-devkit";import { BigInt } from "@graphprotocol/graph-ts";const n = BigInt.fromI32(100);integers.toBytes(n);
the Bytes representation of the BigInt.
the BigInt number.
whether the bytes are big endian or not.
Generated using TypeDoc
Converts BigInt into Bytes.
Example
Returns
the Bytes representation of the BigInt.