• Create list of clarity types

    Returns

    instance of type ListCV of the provided values

    Example

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

    const list = listCV([intCV(1), intCV(2), intCV(3), intCV(-4)]);
    // { type: 11, list: [ { type: 0, value: 1n }, { type: 0, value: 2n }, { type: 0, value: 3n }, { type: 0, value: -4n } ] }

    See

    clarity test cases for more examples

    Type Parameters

    Parameters

    • values: T[]

    Returns ListCV<T>

Generated using TypeDoc