Skip to main content
Version: 0.2.38

sdk.makevalue

Home > @blaze-cardano/sdk > makeValue

makeValue() function

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

Signature:

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.