• Serializes any value of packable type to its optimized binary representation identical to the one used by PACK and UNPACK Michelson instructions. Same as packData but returns a bytes Michelson data literal instead of an array

    const data: MichelsonData = {
    string: "2019-09-26T10:59:51Z"
    };

    const typ: MichelsonType = {
    prim: "timestamp"
    };

    const packed = packDataBytes(data, typ);

    // { bytes: "0500a7e8e4d80b" }

    Parameters

    Returns BytesLiteral

    Binary representation as a bytes literal