Docs

BuyWithCryptoQuote

type BuyWithCryptoQuote = {
client: ThirdwebClient;
paymentTokens: Array<QuotePaymentToken>;
processingFees: Array<QuotePaymentToken>;
swapDetails: {
estimated: {
durationSeconds?: number;
feesUSDCents: number;
fromAmountUSDCents: number;
gasCostUSDCents?: number;
slippageBPS: number;
toAmountMinUSDCents: number;
toAmountUSDCents: number;
};
fromAddress: string;
fromAmount: string;
fromAmountWei: string;
fromToken: QuoteTokenInfo;
maxSlippageBPS: number;
toAddress: string;
toAmount: string;
toAmountMin: string;
toAmountMinWei: string;
toAmountWei: string;
toToken: QuoteTokenInfo;
};
transactionRequest: PrepareTransactionOptions;
};