Skip to content

fromWallet

fromWallet(connection, config): Promise<MiddayClient>

Defined in: src/Client.ts:721

Create a Midnight client from a connected wallet (browser).

When feeRelay: { url } is provided, the user’s wallet balances value inputs with { payFees: false } and the relay adds dust (fees) only.

Parameters

connection

WalletConnection

config

FromWalletConfig

Returns

Promise<MiddayClient>

Since

0.2.0