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 = {
client: ThirdwebClient;
fromAddress: string;
fromChainId: number;
fromTokenAddress: string;
intentId?: string;
maxSlippageBPS?: number;
purchaseData?: object;
toAddress: string;
toChainId: number;
toTokenAddress: string;
} & (
| { fromAmount: string; toAmount?: never }
| { fromAmount?: never; toAmount: string }
);