Skip to main content
Version: Next

emulator.emulator.fund

Home > @blaze-cardano/emulator > Emulator > fund

Emulator.fund() method

Mints a synthetic genesis UTxO to the labelled wallet to seed it with funds.

Signature:

fund(label: string, value?: Value, datum?: PlutusData): Promise<Address>;

Parameters

Parameter

Type

Description

label

string

Wallet identifier to fund.

value

Value

(Optional) Optional custom value (defaults to 100 ADA equivalent).

datum

PlutusData

(Optional) Optional inline datum to attach to the output.

Returns:

Promise<Address>

{Promise

} Resolves to the funded wallet address.