uint

Creates a Clarity uint type (unsigned 128-bit integer), represented as a JS object. Alias for uintCV.


Usage

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

Cl.uint(100);
Cl.uint(100n); // BigInt also accepted
Cl.uint('100'); // String also accepted

Reference Linkarrow-up-right


Signature

const uint: (value: IntegerType) => UIntCV;

Returns

UIntCV

A Clarity unsigned integer value object.


Parameters

value (required)

  • Type: IntegerType (number | bigint | string)

The unsigned integer value. Must be non-negative and fit within the Clarity 128-bit unsigned integer range.

Last updated

Was this helpful?