bufferFromAscii
Creates a Clarity buffer type from an ASCII string. Converts the ASCII string to bytes and wraps it in a BufferCV.
Usage
import { Cl } from '@stacks/transactions';
Cl.bufferFromAscii('hello world');Signature
const bufferFromAscii: (ascii: string) => BufferCV;Returns
BufferCV
A Clarity buffer value object.
Parameters
ascii (required)
Type:
string
An ASCII string to convert to a buffer.
Last updated
Was this helpful?