Class InAppWallet
- Namespace
- Thirdweb
- Assembly
- Thirdweb.dll
Represents an in-app wallet that supports email, phone, social, SIWE and custom authentication.
public class InAppWallet : EcosystemWallet, IThirdwebWallet
- Inheritance
-
InAppWallet
- Implements
- Inherited Members
- Extension Methods
Methods
Create(ThirdwebClient, string, string, AuthProvider, string, IThirdwebWallet, string)
Creates a new instance of the InAppWallet class.
public static Task<InAppWallet> Create(ThirdwebClient client, string email = null, string phoneNumber = null, AuthProvider authProvider = AuthProvider.Default, string storageDirectoryPath = null, IThirdwebWallet siweSigner = null, string legacyEncryptionKey = null)
Parameters
client
ThirdwebClientThe Thirdweb client instance.
email
stringThe email address for Email OTP authentication.
phoneNumber
stringThe phone number for Phone OTP authentication.
authProvider
AuthProviderThe authentication provider to use.
storageDirectoryPath
stringThe path to the storage directory.
siweSigner
IThirdwebWalletThe SIWE signer wallet for SIWE authentication.
legacyEncryptionKey
stringThe encryption key that is no longer required but was used in the past. Only pass this if you had used custom auth before this was deprecated.
Returns
- Task<InAppWallet>
A task that represents the asynchronous operation. The task result contains the created in-app wallet.
Exceptions
- ArgumentException
Thrown when required parameters are not provided.