Skip to main content

executeWith

@liquidium/client


@liquidium/client / executeWith

Function: executeWith()

executeWith(options): <TResult>(action) => Promise<TResult>

Defined in: packages/client/src/execute.ts:40

Returns an async function that runs a WalletAction end-to-end.

  • sign-message: needs walletAdapter.signMessage and options.chain.

Parameters

options

ExecuteWithOptions

Adapter and optional chain/account overrides.

Returns

A function that accepts a WalletAction and resolves with its submit result.

<TResult>(action) => Promise<TResult>

Throws

LiquidiumError with code LiquidiumErrorCode.VALIDATION_ERROR if a required wallet capability or signing chain is missing, or if action.executionKind is unsupported.

Throws

Error If the wallet adapter or action submission fails.