DotEther 0.0.1

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

// Install DotEther as a Cake Tool
#tool nuget:?package=DotEther&version=0.0.1

DotEther

The DotEther package allows easy integration with Ethereum blockchain, your application can create accounts, transfer funds and get balance using U.S. dollar as the basis of calculation.

Get started

It's very easy to use the DotEther package in your project, it was designed to be like this;)

Nuget

Install-Package DotEther

Install Ganache

Quickly fire up a personal Ethereum blockchain which you can use to run tests, execute commands, and inspect state while controlling how the chain operates.

Download Ganache

How to use

Initialize object

For testing use the Ganache endpoint http://127.0.0.1:7545

 var ethSystem = EtherSystem.Initialize(usdExchangeRate: 185.29, rpcServerUrl: "http://127.0.0.1:7545");

Load Account


FromPrivateKey

You can use the private key provided by Ganache for testing.

var account = ethSystem.LoadFromPrivateKey("6b07d0d6870e0208afa7eea36596a085a3447e54282d3f6d95968883de7bc161");

To access an account using public key and password

var account = ethSystem.LoadFromPassword("942735b8fe1b54670e8b9dc9cdb1db0d23bed7e3", password);

Get balance from an account


Balance in Ether

var getBalanceInEther = await ethSystem.GetBalanceInEther(account);

Balance in USD Dollar

var getBalanceInEther = await ethSystem.GetBalanceInUsd(account);

Transfer funds


Transferring $ 200.00. Funds must be transferred in US dollars.

var account = ethSystem.LoadFromPrivateKey("6b07d0d6870e0208afa7eea36596a085a3447e54282d3f6d95968883de7bc161");
var txHash  = await ethSystem.TransferTo(accountFrom: account, accountTo: "942735b8fe1b54670e8b9dc9cdb1db0d23bed7e3", totalInDollars: 200.00);
Product 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.2 is compatible.  netcoreapp3.0 was computed.  netcoreapp3.1 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
0.0.1 482 11/13/2019