Docs

GetBuyWithCryptoQuoteParams

The parameters for getBuyWithCryptoQuote function It includes information about which tokens to swap, the amount of tokens to swap, slippage, etc.

type GetBuyWithCryptoQuoteParams = {
clientId?: string;
fromAddress: string;
fromChainId: number;
fromTokenAddress: string;
maxSlippageBPS?: number;
secretKey?: string;
toChainId: number;
toTokenAddress: string;
} & (
| { fromAmount: string; toAmount?: never }
| { fromAmount?: never; toAmount: string }
);