• Converts ClarityValue to responseErrorCV

    Returns

    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

    Type Parameters

    Parameters

    • value: T

    Returns ResponseErrorCV<T>

Generated using TypeDoc