bufferFromHex
Last updated
Was this helpful?
Creates a Clarity buffer type from a hex string. Converts the hex string to bytes and wraps it in a BufferCV.
import { Cl } from '@stacks/transactions';
Cl.bufferFromHex('a1b2c3');const bufferFromHex: (hex: string) => BufferCV;BufferCV
A Clarity buffer value object.
Type: string
A hex-encoded string (without 0x prefix).
Last updated
Was this helpful?
Was this helpful?