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
bytes
const data: MichelsonData = { string: "2019-09-26T10:59:51Z"};const typ: MichelsonType = { prim: "timestamp"};const packed = packDataBytes(data, typ);// { bytes: "0500a7e8e4d80b" } Copy
const data: MichelsonData = { string: "2019-09-26T10:59:51Z"};const typ: MichelsonType = { prim: "timestamp"};const packed = packDataBytes(data, typ);// { bytes: "0500a7e8e4d80b" }
Data object
Optional
Optional type definition
Binary representation as a bytes literal
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