Skip to main content
Version: 0.13.0

tx.value.makevalue

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

Value.makeValue() function

Creates a new Value object with the specified amount of lovelace and assets.

Signature:

export declare function makeValue(lovelace: bigint, ...assets: [string, bigint][]): Value;

Parameters

Parameter

Type

Description

lovelace

bigint

The amount of lovelace.

assets

[string, bigint][]

The assets to include in the Value object.

Returns:

Value

{Value} - The newly created Value object.