Table of Contents

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

string

Methods

Create(ThirdwebClient, string, string, AuthProvider, string, IThirdwebWallet, string, 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, string walletSecret = null)

Parameters

client ThirdwebClient

The Thirdweb client instance.

email string

The email address for Email OTP authentication.

phoneNumber string

The phone number for Phone OTP authentication.

authProvider AuthProvider

The authentication provider to use.

storageDirectoryPath string

The path to the storage directory.

siweSigner IThirdwebWallet

The SIWE signer wallet for SIWE authentication.

legacyEncryptionKey string

The 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.

walletSecret string

The wallet secret for backend authentication.

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.