@xswap-link/sdk
Version:
JavaScript SDK for XSwap platform
27 lines (25 loc) • 712 B
text/typescript
import { CoinTypeAddress, CollectFees, ContractCall } from "@src/models";
export type GetRoutePayload = {
integratorId: string;
fromChain: string;
toChain: string;
fromToken: string;
toToken: string;
fromAmount: string;
fromAddress: string;
toAddress: string;
paymentToken: string;
slippage: number;
expressDelivery: boolean;
quoteOnly?: boolean;
enableExpress?: boolean;
customContractCalls?: ContractCall[];
sourceChainDexes?: string[];
destinationChainDexes?: string[];
receiveGasOnDestination?: boolean;
collectFees?: CollectFees;
fallbackAddresses?: CoinTypeAddress[];
infiniteApproval: boolean;
integratorFee?: number;
integratorFeeReceiverAddress?: string;
};