• Create tuple of clarity values

    Type Parameters

    Parameters

    • data: TupleData<T>

    Returns TupleCV<TupleData<T>>

    returns instance of type clarity tuple

    Example

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

    const tuple = tupleCV({
    c: trueCV(),
    b: falseCV(),
    a: trueCV(),
    });
    // { type: 12, data: { c: { type: 3 }, b: { type: 4 }, a: { type: 3 } } }

    See

    clarity test cases for more examples

Generated using TypeDoc