VOOZH about

URL: https://www.nuget.org/packages/WalletConnect.Desktop/

⇱ NuGet Gallery | WalletConnect.Desktop 1.7.2




👁 Image
WalletConnect.Desktop 1.7.2

Prefix Reserved
dotnet add package WalletConnect.Desktop --version 1.7.2
 
 
NuGet\Install-Package WalletConnect.Desktop -Version 1.7.2
 
 
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="WalletConnect.Desktop" Version="1.7.2" />
 
 
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="WalletConnect.Desktop" Version="1.7.2" />
 
Directory.Packages.props
<PackageReference Include="WalletConnect.Desktop" />
 
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add WalletConnect.Desktop --version 1.7.2
 
 
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: WalletConnect.Desktop, 1.7.2"
 
 
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package WalletConnect.Desktop@1.7.2
 
 
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=WalletConnect.Desktop&version=1.7.2
 
Install as a Cake Addin
#tool nuget:?package=WalletConnect.Desktop&version=1.7.2
 
Install as a Cake Tool
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

WalletConnectSharp

WalletConnectSharp is an implementation of the WalletConnect protocol (currently only v1) using .NET and (optinoally) NEthereum. This library implements the WalletConnect Technical Specification in .NET to allow C# dApps makers to add support for the open WalletConnect protocol.

This package includes the Websocket Transport and can be used to integrate with the WalletConnect protocol out-of-the box

Usage

First you must define the ClientMeta you would like to send along with your connect request. This is what is shown in the Wallet UI

var metadata = new ClientMeta()
{
 Description = "This is a test of the Nethereum.WalletConnect feature",
 Icons = new[] {"https://app.warriders.com/favicon.ico"},
 Name = "WalletConnect Test",
 URL = "https://app.warriders.com"
}; 

Once you have the metadata, you can create the WalletConnect object

var walletConnect = new WalletConnect(metadata);
Console.WriteLine(walletConnect.URI);

This will print the wc connect code into the console. You can transform this text into a QR code or use it for deep linking. Once you have the wc link displayed to the user, you can then call Connect(). The Connect() function will block until either a successful or rejected session response

var walletConnectData = await walletConnect.Connect();

This function returns a Task<WCSessionData> object, so it can be awaited if your using async/await. The WCSessionData has data about the current session (accounts, chainId, etc..)

Console.WriteLine(walletConnectData.accounts[0]);
Console.WriteLine(walletConnectData.chainId);

Connecting with NEthereum

With the above, you have enough to use the base WalletConnect protocol. However, this library comes with an NEthereum provider implementation. To use it, you simply invoke CreateProvider(url) or CreateProvider(IClient). You are required to specify an additional RPC URL or a custom IClient because the WalletConnect protocol does not perform read operations (eth_call, eth_estimateGas, etc..), so you must provide either an Infura Project ID, a node's HTTP url for HttpProvider or a custom IClient.

Here is an example

var web3 = new Web3(walletConnect.CreateProvider(new Uri("https://mainnet.infura.io/v3/<infruaId>"));
Product Versions Compatible and additional computed target framework versions.
.NET net6.0 net6.0 is compatible.  net6.0-android net6.0-android was computed.  net6.0-ios net6.0-ios was computed.  net6.0-maccatalyst net6.0-maccatalyst was computed.  net6.0-macos net6.0-macos was computed.  net6.0-tvos net6.0-tvos was computed.  net6.0-windows net6.0-windows was computed.  net7.0 net7.0 was computed.  net7.0-android net7.0-android was computed.  net7.0-ios net7.0-ios was computed.  net7.0-maccatalyst net7.0-maccatalyst was computed.  net7.0-macos net7.0-macos was computed.  net7.0-tvos net7.0-tvos was computed.  net7.0-windows net7.0-windows was computed.  net8.0 net8.0 was computed.  net8.0-android net8.0-android was computed.  net8.0-browser net8.0-browser was computed.  net8.0-ios net8.0-ios was computed.  net8.0-maccatalyst net8.0-maccatalyst was computed.  net8.0-macos net8.0-macos was computed.  net8.0-tvos net8.0-tvos was computed.  net8.0-windows net8.0-windows was computed.  net9.0 net9.0 was computed.  net9.0-android net9.0-android was computed.  net9.0-browser net9.0-browser was computed.  net9.0-ios net9.0-ios was computed.  net9.0-maccatalyst net9.0-maccatalyst was computed.  net9.0-macos net9.0-macos was computed.  net9.0-tvos net9.0-tvos was computed.  net9.0-windows net9.0-windows was computed.  net10.0 net10.0 was computed.  net10.0-android net10.0-android was computed.  net10.0-browser net10.0-browser was computed.  net10.0-ios net10.0-ios was computed.  net10.0-maccatalyst net10.0-maccatalyst was computed.  net10.0-macos net10.0-macos was computed.  net10.0-tvos net10.0-tvos was computed.  net10.0-windows net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.7.2 1,556 10/3/2022 1.7.2 is deprecated because it is no longer maintained.
1.7.1 1,140 6/1/2022
1.7.0 874 5/4/2022
1.6.9 648 4/28/2022
1.6.8 620 4/28/2022
1.6.7 607 4/28/2022
1.6.5 765 10/22/2021
1.6.2 741 8/24/2021
1.6.1 487 8/18/2021
1.6.0 514 8/18/2021