cvToHex
Last updated
Was this helpful?
Converts a Clarity value to a hex-encoded string with a 0x prefix.
import { cvToHex, Cl } from '@stacks/transactions';
const hex = cvToHex(Cl.uint(100));
// '0x0100000000000000000000000000000064'function cvToHex(cv: ClarityValue): string;string
A hex-encoded string with 0x prefix.
Type: ClarityValue
The Clarity value to convert.
Last updated
Was this helpful?
Was this helpful?