serialize
Last updated
Was this helpful?
Serializes a Clarity JS object to the equivalent hex-encoded representation. Alias for serializeCV.
import { Cl } from '@stacks/transactions';
const hex = Cl.serialize(Cl.uint(100));
// '0100000000000000000000000000000064'The result is a hex string (without 0x prefix).
Use Cl.deserialize to reverse this operation.
const serialize: (value: ClarityValue) => string;string
A hex-encoded string representing the serialized Clarity value.
Type: ClarityValue
The Clarity value to serialize.
Last updated
Was this helpful?
Was this helpful?