tuple
Last updated
Was this helpful?
Creates a Clarity tuple type from a JavaScript object. Alias for tupleCV.
import { Cl } from '@stacks/transactions';
Cl.tuple({
a: Cl.uint(100),
b: Cl.stringUtf8('hello world'),
c: Cl.bool(true),
});const tuple: (data: Record<string, ClarityValue>) => TupleCV;TupleCV
A Clarity tuple value object.
Type: Record<string, ClarityValue>
An object mapping string keys to Clarity values. Keys must be valid Clarity names.
Last updated
Was this helpful?
Was this helpful?