Skip to main content

Upgrade from Web3Wallet to WalletKit for .NET

Upgrade to Reown WalletKit

This document outlines the steps to migrate from the old WalletConnect.Web3Wallet package to the new Reown.WalletKit package in your .NET project.

Step 1. Replace the corresponding dependency in your project file

<Project Sdk="Microsoft.NET.Sdk">

<!-- ... -->

<ItemGroup>
<PackageReference Include="WalletConnect.Web3Wallet" Version="2.4.2" />
<PackageReference Include="Reown.WalletKit" Version="1.0.0" />
</ItemGroup>

</Project>

Alternatively, you can use the .NET CLI:

# Remove the old package
dotnet remove package WalletConnect.Web3Wallet

# Add the new package
dotnet add package Reown.WalletKit

Step 2. Update references to the namespaces

OldNew
WalletConnectSharp.Web3WalletReown.WalletKit
WalletConnectSharp.SignReown.Sign
WalletConnectSharp.CoreReown.Core
WalletConnectSharp.StorageReown.Core.Storage
WalletConnectSharp.CryptoReown.Core.Crypto
WalletConnectSharp.NetworkReown.Core.Network

Step 3. Update references to the classes

OldNew
WalletConnectCoreCoreClient
WalletConnectSignClientSignClient
Web3WalletClientWalletKitClient
WCLoggerReownLogger

Final notes

  • Ensure that you have updated all relevant configurations and imports in your project to reflect the changes from Web3Wallet to WalletKit.
  • Test your application thoroughly to ensure that the migration has been successful and that all functionality is working as expected.