• Serializes clarity value to hex

    Parameters

    Returns string

    Example

     import { intCV, serializeCV } from '@stacks/transactions';

    const serialized = serializeCV(intCV(100)); // Similarly works for other clarity types as well like listCV, booleanCV ...
    // '0000000000000000000000000000000064'

    See

    clarity test cases for more examples

Generated using TypeDoc