stringify
Usage
import { Cl } from '@stacks/transactions';
Cl.stringify(Cl.uint(100));
// 'u100'
Cl.stringify(Cl.tuple({ id: Cl.some(Cl.uint(1)) }));
// '{ id: (some u1) }'
// With indentation (2 spaces)
Cl.stringify(Cl.tuple({ id: Cl.some(Cl.uint(1)), name: Cl.stringAscii('hello') }), 2);
// '{
// id: (some u1),
// name: "hello"
// }'Notes
Signature
Returns
Parameters
cv (required)
space (optional)
Last updated
Was this helpful?