• Converts ClarityValue to responseErrorCV

    Type Parameters

    Parameters

    • value: T

    Returns ResponseErrorCV<T>

    returns instance of type responseErrorCV

    Example

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

    const respErrorCV = responseErrorCV(intCV(1));

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

    See

    clarity test cases for more examples

Generated using TypeDoc