Docs

BuyWithCrypto

Send a quoted swap transaction. See GetBuyWithCryptoQuote for more information on how to get a swap quote.

Usage

using Thirdweb.Pay;
public async void Buy()
{
string txHash = await ThirdwebPay.BuyWithCrypto(_quote);
ThirdwebDebug.Log($"Transaction hash: {_txHash}");
}