LykkeBiz.Nethereum.Extension
1.0.2
See the version list below for details.
dotnet add package LykkeBiz.Nethereum.Extension --version 1.0.2
NuGet\Install-Package LykkeBiz.Nethereum.Extension -Version 1.0.2
<PackageReference Include="LykkeBiz.Nethereum.Extension" Version="1.0.2" />
paket add LykkeBiz.Nethereum.Extension --version 1.0.2
#r "nuget: LykkeBiz.Nethereum.Extension, 1.0.2"
// Install LykkeBiz.Nethereum.Extension as a Cake Addin #addin nuget:?package=LykkeBiz.Nethereum.Extension&version=1.0.2 // Install LykkeBiz.Nethereum.Extension as a Cake Tool #tool nuget:?package=LykkeBiz.Nethereum.Extension&version=1.0.2
Lykke.Nethereum.Extension
The extension to Nethereum library
Batch execute via https
Create RPC client: ILykkeJsonRpcClientvar client = new LykkeJsonRpcClient(NodeUrl);
Make a call: var result = await client.ExecuteRpcBatchAsync( new RpcRequestMessage(1, "eth_getBalance", "0xd092cd556828f7a2f4db7eeb9fe3b261cd664350", "latest"), new RpcRequestMessage("hello world", "eth_blockNumber"));
Handle results Assert.AreEqual(2, result.Count); Assert.AreEqual(1, result[0].IdAsInteger()); Assert.AreEqual("hello world", result[1].IdAsString());
Get block number
Create RPC client: ILykkeJsonRpcClientvar client = new LykkeJsonRpcClient(NodeUrl);
Make a call: Int64 blockNumber = await client.GetBlockNumberAsync();
Handle results Console.WriteLine($"Last block number: {blockNumber}");
Get Ether balance
Create RPC client: ILykkeJsonRpcClientvar client = new LykkeJsonRpcClient(NodeUrl);
Make a call: Int balanceWei = wait client.GetEtherBalanceAsync("0xd092cd556828f7a2f4db7eeb9fe3b261cd664350");
Handle results Console.WriteLine($"balance in wei: {balanceWei}");
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 | netcoreapp2.0 is compatible. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
-
.NETCoreApp 2.0
- Microsoft.Extensions.Http (>= 3.0.0)
- Nethereum.Web3 (>= 3.4.0)
- Newtonsoft.Json (>= 12.0.3)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.