Converts IntegerType in to IntCV clarity type
returns instance of type IntCV
import { intCV } from '@stacks/transactions'; const value = intCV('100'); // parameter any of type: number | string | bigint | Uint8Array | BN // { type: 'int', value: 100n } Copy
import { intCV } from '@stacks/transactions'; const value = intCV('100'); // parameter any of type: number | string | bigint | Uint8Array | BN // { type: 'int', value: 100n }
clarity test cases for more examples
Generated using TypeDoc
Converts IntegerType in to IntCV clarity type