parse
Usage
import { Cl } from '@stacks/transactions';
Cl.parse('u4');
// UIntCV { type: 'uint', value: 4n }
Cl.parse('"hello"');
// StringAsciiCV { type: 'string-ascii', value: 'hello' }
Cl.parse('(tuple (a 1) (b 2))');
// TupleCV with keys 'a' and 'b'
Cl.parse('(ok u100)');
// ResponseOkCV wrapping UIntCV
Cl.parse("'ST000000000000000000002AMW42H");
// StandardPrincipalCVNotes
Signature
Returns
Parameters
clarityValueString (required)
Last updated
Was this helpful?