Docs

GetBuyWithCryptoHistory

Get swap history for a specific wallet that executed a swap, supports cursor and pagination.

Usage

using Thirdweb.Pay;
public async void GetBuyWithCryptoHistory()
{
string connectedAddress = await ThirdwebManager.Instance.SDK.Wallet.GetAddress();
BuyWithCryptoHistoryResult history = await ThirdwebPay.GetBuyWithCryptoHistory(walletAddress: connectedAddress, start: 0, count: 1);
ThirdwebDebug.Log($"History: {JsonConvert.SerializeObject(history, Formatting.Indented)}");
BuyWithCryptoHistoryResult historyNext = await ThirdwebPay.GetBuyWithCryptoHistory(walletAddress: connectedAddress, start: 1, count: 10, cursor: history.NextCursor, pageSize: null);
ThirdwebDebug.Log($"History Next: {JsonConvert.SerializeObject(historyNext, Formatting.Indented)}");
}