GetBuyWithFiatQuote

Get a quote containing an intent id and onramp link for a fiat to crypto swap.

Usage

using Thirdweb.Pay;
var connectedAddress = await wallet.GetAddress();
var fiatQuoteParams = new BuyWithFiatQuoteParams(
fromCurrencySymbol: "USD", // US Dollar
toAddress: connectedAddress, // Receiver address
toChainId: "137", toTokenAddress: Thirdweb.Constants.NATIVE_TOKEN_ADDRESS, // MATIC
toAmount: "20" // I want to buy 20 MATIC
);
var quote = await ThirdwebPay.GetBuyWithFiatQuote(client, fiatQuoteParams);