Ether.NethereumProvider 1.0.0

dotnet add package Ether.NethereumProvider --version 1.0.0
NuGet\Install-Package Ether.NethereumProvider -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="Ether.NethereumProvider" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Ether.NethereumProvider --version 1.0.0
#r "nuget: Ether.NethereumProvider, 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 Ether.NethereumProvider as a Cake Addin
#addin nuget:?package=Ether.NethereumProvider&version=1.0.0

// Install Ether.NethereumProvider as a Cake Tool
#tool nuget:?package=Ether.NethereumProvider&version=1.0.0

Ether.NethereumProvider

This library provides a Netherem IWeb3 client interface for use within Blazor WebAssembly.

Usage

Configuration

Register the components:


// configure EtherProvider - NethereumProvider
builder.Services.AddEtherProviderRegistry(config => config.AddMetaMaskProvider());


builder.Services.AddNethereumProviderRegistry();

Using the provider

Inject the provider into a Razor page:

@using MetaMask.NethereumProvider
@inject INethereumMetaMaskProvider Provider;

Using the provider:

Check if MetaMask has been installed

bool isAvailable = await Provider.IsMetaMaskAvailable();

Connect to MetaMask:

await Provider.Connect();

Create a IWeb3 client

Nethereum.Web3.IWeb3 web3 = await Provider.CreateWeb3();

Sample App

See Ether.NethereumProvider.Sample for a simple working example

Warning

Executing blockchain transactions are irreversible. Ensure sufficient testing has been done using testnet's before any live transactions are attempted.

This software is provided as is with no warranty of any kind, see the license

Comments / Suggestions

Feel free to suggest any improvements or bug fixes.

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.

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.0.0 244 6/23/2022