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;
toChainId: number;
toTokenAddress: string;
} & (
| { fromAmount: string; toAmount?: never }
| { fromAmount?: never; toAmount: string }
);