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
Properties
WalletId
String identifier for the wallet to be used in analytics.
public override string WalletId { get; }
Property Value
Methods
Create(ThirdwebClient, string, string, AuthProvider, string, IThirdwebWallet, string, string, ExecutionMode)
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 walletSecret = null, string twAuthTokenOverride = null, ExecutionMode executionMode = ExecutionMode.EOA)
Parameters
clientThirdwebClientThe Thirdweb client instance.
emailstringThe email address for Email OTP authentication.
phoneNumberstringThe phone number for Phone OTP authentication.
authProviderAuthProviderThe authentication provider to use.
storageDirectoryPathstringThe path to the storage directory.
siweSignerIThirdwebWalletThe SIWE signer wallet for SIWE authentication.
walletSecretstringThe wallet secret for backend authentication.
twAuthTokenOverridestringThe auth token to use for the session. This will automatically connect using a raw thirdweb auth token.
executionModeExecutionModeThe execution mode for the wallet. EOA represents traditional direct calls, EIP7702 represents upgraded account self sponsored calls, and EIP7702Sponsored represents upgraded account calls with managed/sponsored execution.
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.