buffer
Last updated
Was this helpful?
Creates a Clarity buffer type from a Uint8Array. Alias for bufferCV.
import { Cl } from '@stacks/transactions';
Cl.buffer(Uint8Array.from([0x01, 0x02, 0x03]));For convenience, use Cl.bufferFromHex, Cl.bufferFromAscii, or Cl.bufferFromUtf8 to create buffers from strings.
const buffer: (value: Uint8Array) => BufferCV;BufferCV
A Clarity buffer value object.
Type: Uint8Array
Raw bytes to use as the buffer value.
Last updated
Was this helpful?
Was this helpful?