Skip to main content
Version: Next

tx.value.negate

Home > @blaze-cardano/tx > Value > negate

Value.negate() function

Negates the coin and multiasset values of a Value object.

Signature:

export declare function negate(v: Value): Value;

Parameters

Parameter

Type

Description

v

Value

The Value object to negate.

Returns:

Value

{Value} - The resulting Value object after negation.