Converts any ClarityValue in to OptionalCV clarity type
returns instance of type OptionalCV
import { someCV, trueCV } from '@stacks/transactions'; const value = someCV(trueCV()); // { type: 10, value: { type: 3 } }
clarity test cases for more examples
to be converted to OptionalCV clarity type
Generated using TypeDoc
Converts any ClarityValue in to OptionalCV clarity type
Returns
returns instance of type OptionalCV
Example
See
clarity test cases for more examples