• Create tuple of clarity values

    Returns

    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

    Type Parameters

    Parameters

    • data: TupleData<T>

    Returns TupleCV<TupleData<T>>

Generated using TypeDoc