Unity
If you are selling an NFT in your game, it is important to check the following :
Is user authenticated with a email?
using UnityEngine;
using RGN;
public class WalletExamples : MonoBehaviour
{
private bool IsUserAuthenticatedWithEmail()
{
return RGNCoreBuilder.I.CurrentAuthState.AuthProvider == EnumAuthProvider.Email;
}
}Is user has a wallet?
using UnityEngine;
using RGN;
using RGN.Modules.Wallets;
using System.Threading.Tasks;
public class WalletExamples : MonoBehaviour
{
private async Task<bool> IsUserHasBlockchainRequirement()
{
bool hasRequirement = await WalletsModule.I.IsUserHasBlockchainRequirementAsync();
return hasRequirement;
}
}Create wallet
Example flow for NFT purchase
Was this helpful?