Ether.NethereumProvider
1.0.0
dotnet add package Ether.NethereumProvider --version 1.0.0
NuGet\Install-Package Ether.NethereumProvider -Version 1.0.0
<PackageReference Include="Ether.NethereumProvider" Version="1.0.0" />
paket add Ether.NethereumProvider --version 1.0.0
#r "nuget: Ether.NethereumProvider, 1.0.0"
// 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 | Versions 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. |
-
net6.0
- Ether.BlazorProvider (>= 1.0.0)
- Microsoft.AspNetCore.Components.Web (>= 6.0.5)
- Nethereum.Web3 (>= 4.5.0)
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 | 279 | 6/23/2022 |