hexToCV
Usage
import { hexToCV } from '@stacks/transactions';
const cv = hexToCV('0x0100000000000000000000000000000064');
// UIntCV { type: 'uint', value: 100n }
// Also works without 0x prefix
const cv2 = hexToCV('0100000000000000000000000000000064');Signature
function hexToCV(hex: string): ClarityValue;Returns
Parameters
hex (required)
Last updated
Was this helpful?