• Converts ClarityValue to ResponseOkCV

    Type Parameters

    Parameters

    • value: T

    Returns ResponseOkCV<T>

    returns instance of type ResponseOkCV

    Example

     import { responseOkCV, intCV } from '@stacks/transactions';

    const respOKCV = responseOkCV(intCV(1));

    // { type: 'ok', value: { type: 'int', value: 1n } }

    See

    clarity test cases for more examples

Generated using TypeDoc