• Create list of clarity types

    Type Parameters

    Parameters

    • values: T[]

    Returns ListCV<T>

    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: 'list', list: [ { type: 0, value: 1n }, { type: 0, value: 2n }, { type: 0, value: 3n }, { type: 0, value: -4n } ] }

    See

    clarity test cases for more examples

Generated using TypeDoc