Skip to content

v5.21.0

Latest
Compare
Choose a tag to compare
@0xFirekeeper 0xFirekeeper released this 08 May 00:09
3846c67

[Beta] Your In-App Wallets can now be upgraded directly to an EIP7702 Smart Account with a simple connection flag!

Additions from Thirdweb's .NET SDK Release 2.21.0 bring us an amazing EIP-7702 integration, which allows you to turn any In-App Wallet EOA into a Smart EOA, getting all the functionality you love from SmartWallet, without all the things you hate about it (see .NET release above).

Upgrade In-App Wallet to get gas sponsorship and more, all while preserving the wallet type and the address.

// Turn your boring EOAs into Smart EOAs!
var smartIaw = await ConnectWallet(
    new WalletOptions(
        provider: WalletProvider.InAppWallet,
        chainId: 11155111, // Sepolia supports EIP-7702
        inAppWalletOptions: new InAppWalletOptions(
            authprovider: AuthProvider.Google,
            executionMode: ExecutionMode.EIP7702Sponsored // new!
        )
    )
);
ThirdwebDebug.Log("Connected to InAppWallet: " + await smartIaw.GetAddress());

// Execute a transaction as usual, execution is managed by thirdweb seamlessly!
var receipt = await smartIaw.Transfer(11155111, await smartIaw.GetAddress(), 0);
ThirdwebDebug.Log($"Transfer receipt: https://sepolia.etherscan.io/tx/{receipt.TransactionHash}");