deserialize
Last updated
Was this helpful?
Deserializes a hex string to the equivalent Clarity JS object. Alias for deserializeCV.
import { Cl } from '@stacks/transactions';
const value = Cl.deserialize('0100000000000000000000000000000064');
// UIntCV { type: 'uint', value: 100n }The input hex string may or may not include a 0x prefix.
Use Cl.serialize to reverse this operation.
const deserialize: (hex: string) => ClarityValue;ClarityValue
The deserialized Clarity value object.
Type: string
A hex-encoded string representing a serialized Clarity value.
Last updated
Was this helpful?
Was this helpful?