UNPKG

@reservoir0x/relay-sdk

Version:

Relay is the Fastest and Cheapest Way to Bridge and Transact Across Chains.

23 lines 959 B
import type { AdaptedWallet, ProgressData, Execute } from '../types/index.js'; import { type WalletClient } from 'viem'; export type ExecuteActionParameters = { quote: Execute; wallet: AdaptedWallet | WalletClient; depositGasLimit?: string; onProgress?: (data: ProgressData) => any; }; /** * Execute crosschain using Relay * @param data.quote A Relay quote retrieved using {@link getQuote} * @param data.depositGasLimit A gas limit to use in base units (wei, etc) * @param data.wallet Wallet object that adheres to the AdaptedWakket interface or a viem WalletClient * @param data.onProgress Callback to update UI state as execution progresses * @param abortController Optional AbortController to cancel the execution */ export declare function execute(data: ExecuteActionParameters): Promise<{ data: Execute; abortController: AbortController; }> & { abortController: AbortController; }; //# sourceMappingURL=execute.d.ts.map