Net.Web3.EthereumWallet 1.0.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package Net.Web3.EthereumWallet --version 1.0.0
NuGet\Install-Package Net.Web3.EthereumWallet -Version 1.0.0
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="Net.Web3.EthereumWallet" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Net.Web3.EthereumWallet --version 1.0.0
#r "nuget: Net.Web3.EthereumWallet, 1.0.0"
#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.
// Install Net.Web3.EthereumWallet as a Cake Addin
#addin nuget:?package=Net.Web3.EthereumWallet&version=1.0.0

// Install Net.Web3.EthereumWallet as a Cake Tool
#tool nuget:?package=Net.Web3.EthereumWallet&version=1.0.0

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 Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net6.0

    • No dependencies.

NuGet packages (1)

Showing the top 1 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.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.1.0 440 3/18/2024
1.0.0 756 11/28/2023