bool

Creates a Clarity bool type, represented as a JS object. Alias for boolCV.


Usage

import { Cl } from '@stacks/transactions';

Cl.bool(true);  // { type: 'bool', value: true }
Cl.bool(false); // { type: 'bool', value: false }

Reference Linkarrow-up-right


Signature

const bool: (value: boolean) => BooleanCV;

Returns

BooleanCV

A Clarity boolean value object (TrueCV or FalseCV).


Parameters

value (required)

  • Type: boolean

The boolean value to wrap.

Last updated

Was this helpful?