• Converts ClarityValue to stringUtf8CV

    Parameters

    • data: string

    Returns StringUtf8CV

    returns instance of type stringUtf8CV

    Example

     import { stringUtf8CV } from '@stacks/transactions';

    const stringUTF8 = stringUtf8CV('test');

    // { type: 'utf8', data: 'hello' }

    See

    clarity test cases for more examples

Generated using TypeDoc