list
Creates a Clarity list type from an array of Clarity values. Alias for listCV.
Usage
import { Cl } from '@stacks/transactions';
Cl.list([Cl.int(100), Cl.int(200), Cl.int(300)]);
// Empty list
Cl.list([]);Signature
const list: (values: ClarityValue[]) => ListCV;Returns
ListCV
A Clarity list value object.
Parameters
values (required)
Type:
ClarityValue[]
An array of Clarity values. All values should be of the same Clarity type for the list to be valid in Clarity.
Last updated
Was this helpful?