• Converts ClarityValue to ResponseOkCV

    Returns

    returns instance of type ResponseOkCV

    Example

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

    const respOKCV = responseOkCV(intCV(1));

    // { type: 7, value: { type: 0, value: 1n } }

    See

    clarity test cases for more examples

    Type Parameters

    Parameters

    • value: T

    Returns ResponseOkCV<T>

Generated using TypeDoc