GetBuyWithCryptoStatus

Get swap status for a transaction hash returned by BuyWithCrypto.

Usage

using Thirdweb.Pay;
public async void GetStatus()
{
BuyWithCryptoStatusResult status = await ThirdwebManager.Instance.SDK.Pay.GetBuyWithCryptoStatus(_txHash);
if (status.Status == SwapStatus.FAILED.ToString())
ThirdwebDebug.LogWarning($"Failed! Reason: {status.FailureMessage}");
ThirdwebDebug.Log($"Status: {JsonConvert.SerializeObject(status, Formatting.Indented)}");
}