@swapnet-xyz/sdk
Version:
TypeScript SDK for SwapNet API.
9 lines (8 loc) • 483 B
TypeScript
import { Wallet } from "ethers";
import { type IEncodeOptions, type ChainId } from "./index.js";
export declare const tradeE2eAsync: (chainId: ChainId, sellTokenAddress: string, buyTokenAddress: string, sellAmount: bigint, encodeOptions: IEncodeOptions, senderWallet: Wallet, maxFeePerGas: bigint, maxPriorityFeePerGas: bigint, swapnetApiKey: string) => Promise<{
error?: string;
erc20ApprovalTxHash?: string;
permit2ApprovalTxHash?: string;
swapTxHash?: string;
}>;