Cl.bufferFromUtf8 — Converts bytes (from an UTF-8 string) to a Clarity buffer type, represented as a JS object
Cl.bufferFromUtf8
buffer
input encoded as a BufferCV
import { Cl } from '@stacks/transactions';Cl.bufferFromUtf8('hello world'); Copy
import { Cl } from '@stacks/transactions';Cl.bufferFromUtf8('hello world');
Generated using TypeDoc
Cl.bufferFromUtf8
— Converts bytes (from an UTF-8 string) to a Claritybuffer
type, represented as a JS object