Net.Web3.EthereumWallet
1.1.1
dotnet add package Net.Web3.EthereumWallet --version 1.1.1
NuGet\Install-Package Net.Web3.EthereumWallet -Version 1.1.1
<PackageReference Include="Net.Web3.EthereumWallet" Version="1.1.1" />
paket add Net.Web3.EthereumWallet --version 1.1.1
#r "nuget: Net.Web3.EthereumWallet, 1.1.1"
// Install Net.Web3.EthereumWallet as a Cake Addin #addin nuget:?package=Net.Web3.EthereumWallet&version=1.1.1 // Install Net.Web3.EthereumWallet as a Cake Tool #tool nuget:?package=Net.Web3.EthereumWallet&version=1.1.1
Net.Web3.EthereumWallet
Description
Net.Web3.EthereumWallet
is a C# library for handling Ethereum addresses. It provides a convenient way to validate, represent, and manipulate Ethereum addresses in .NET applications.
Installation
You can install the package via NuGet:
Install-Package Net.Web3.EthereumWallet
Or using .NET CLI:
dotnet add package Net.Web3.EthereumWallet
Usage
Creating and Validating Ethereum Addresses
using Net.Web3.EthereumWallet;
// Creating an Ethereum address
var ethAddress = new EthereumAddress("0x1234567890abcdef1234567890abcdef1234567890");
// Validating the address format
bool isValid = ethAddress.Address.IsValidEthereumAddressHexFormat();
Conversion and Comparison
// Implicit conversion from a string
EthereumAddress addressFromString = "0x1234567890abcdef1234567890abcdef1234567890";
// Converting back to a string
string addressString = addressFromString;
// Comparing addresses
bool areEqual = addressFromString == new EthereumAddress("0x1234567890abcdef1234567890abcdef1234567890");
Shortened Address Representation
// Getting a shortened version of the address
string shortAddress = ethAddress.ToShortAddress(4); // Outputs "0x1234...7890"
License
Net.Web3.EthereumWallet
is open-sourced software licensed under the MIT License.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
.NET Core | netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.1 is compatible. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.1
- No dependencies.
NuGet packages (2)
Showing the top 2 NuGet packages that depend on Net.Web3.EthereumWallet:
Package | Downloads |
---|---|
Net.Cache.DynamoDb.ERC20
A specialized extension of `Net.Cache.DynamoDb` package, for caching ERC20 token information in Amazon DynamoDB. |
|
BNBParty.GraphQLClient
GraphQL Client for BNBParty .NET |
GitHub repositories
This package is not used by any popular GitHub repositories.