• 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: 'tuple', data: { c: { type: 'true' }, b: { type: 'false' }, a: { type: 'true' } } }

    See

    clarity test cases for more examples

Generated using TypeDoc