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