Docs

boolToHex

Converts a boolean value to a hexadecimal string representation.

Example

import { boolToHex } from "thirdweb/utils";
const hex = boolToHex(true);
console.log(hex); // "0x01"

Parameters

Returns

The hexadecimal string representation of the boolean value.