• Converts data into a hex-encoded string.

    Parameters

    • src: string | Uint8Array | ArrayBuffer

    Returns string

    Example

    import { encodeHex } from "@ckb-cobuild/hex-encoding";

    encodeHex("abc"); // "616263"

Generated using TypeDoc