Skip to main content

sendTransactionToAddress

Midnight.js API Reference v2.0.2


Midnight.js API Reference / @midnight-ntwrk/midnight-js-testing / sendTransactionToAddress

Function: sendTransactionToAddress()

sendTransactionToAddress(walletWithFunds, address, outputValue?): Promise<void>

Sends a transaction to a specific address.

Parameters

walletWithFunds

MidnightWallet

The wallet to send funds from

address

string

The recipient's address

outputValue?

bigint = 100_000_000n

The amount to send

Returns

Promise<void>