• Converts any ClarityValue in to OptionalCV clarity type

    Returns

    returns instance of type OptionalCV

    Example

     import { someCV, trueCV } from '@stacks/transactions';

    const value = someCV(trueCV());
    // { type: 10, value: { type: 3 } }

    See

    clarity test cases for more examples

    Type Parameters

    Parameters

    • value: T

      to be converted to OptionalCV clarity type

    Returns OptionalCV<T>

Generated using TypeDoc