Skip to main content
Version: 0.13.0

tx.value.sub

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

Value.sub() function

Subtracts the values of one Value object from another.

Signature:

export declare function sub(a: Value, b: Value): Value;

Parameters

Parameter

Type

Description

a

Value

The Value object to subtract from.

b

Value

The Value object to subtract.

Returns:

Value

{Value} - The resulting Value object after subtraction.