Converts a string to BufferCV clarity type
returns instance of type BufferCV
import { bufferCVFromString } from '@stacks/transactions'; const str = 'this is a test'; const buf = bufferCVFromString(str); // { type: 2, buffer: <Buffer 74 68 69 73 20 69 73 20 61 20 74 65 73 74> } const value = bytesToUtf8(buf.buffer); // this is a test
clarity test cases for more examples
Generated using TypeDoc
Converts a string to BufferCV clarity type
Returns
returns instance of type BufferCV
Example
See
clarity test cases for more examples