Converts ClarityValue to ResponseOkCV
returns instance of type ResponseOkCV
import { responseOkCV, intCV } from '@stacks/transactions'; const respOKCV = responseOkCV(intCV(1)); // { type: 'ok', value: { type: 'int', value: 1n } } Copy
import { responseOkCV, intCV } from '@stacks/transactions'; const respOKCV = responseOkCV(intCV(1)); // { type: 'ok', value: { type: 'int', value: 1n } }
clarity test cases for more examples
Generated using TypeDoc
Converts ClarityValue to ResponseOkCV