error

Creates a Clarity response error type. Alias for responseErrorCV.


Usage

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

Cl.error(Cl.uint(9900));

Reference Linkarrow-up-right


Signature

const error: (value: ClarityValue) => ResponseErrorCV;

Returns

ResponseErrorCV

A Clarity err response value object.


Parameters

value (required)

  • Type: ClarityValue

The Clarity value representing the error result.

Last updated

Was this helpful?