Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Ethereum .Net cross platform integration library

License

NotificationsYou must be signed in to change notification settings

Nethereum/Nethereum

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Documentation StatusNuGet version

Technical support, chat and collaboration at Discord:https://discord.gg/u3Ej2BReNn

What is Nethereum ?

Nethereum is the .Net integration library for Ethereum, simplifying the access and smart contract interaction with Ethereum nodes both public like Geth (or your preferred client) L2 chains like Optimism, Arbitrum (or your preferred L2), any compatible EVM chain (Gnosis, etc) and permissioned chains likeQuorum.

Nethereum is developed targeting netstandard 1.1, netstandard 2.0, netcore 3.1, net451, .net 6, .net 8 and also as a portable library, hence it is compatible with all the operating systems (Windows, Linux, MacOS, Android and OSX) and has been tested on cloud, mobile, desktop, consoles and IoT.

Nethereum Playground. Try Nethereum now in your browser.

Go tohttp://playground.nethereum.com to browse and execute all the different samples on how to use Nethereum directly in your browser.

Nethereum Playground

Do you need support, want to have a chat, or want to help?

Please join the Discord server using this link:https://discord.gg/u3Ej2BReNnWe should be able to answer there any simple queries, general comments or requests, everyone is welcome.If you want to help or have any ideas for a pull request just come and chat.

Documentation

The documentation and guides can be found atRead the docs.

Features

  • JSON RPC / IPC Ethereum core methods.
  • Geth management API (admin, personal, debugging, miner).
  • Parity management API.
  • Quorum integration.
  • Simplified smart contract interaction for deployment, function calling, transaction and event filtering and decoding of topics.
  • Unity 3d Unity integration.
  • ABI to .Net type encoding and decoding, including attribute based for complex object deserialization.
  • Hd Wallet
  • External signers integration (Azure, AWS)
  • Wallet integration (Metamask, WalletConnect)
  • EVM Simulator
  • Transaction, RLP and message signing, verification and recovery of accounts.
  • Libraries for standard contracts Tokens,ENS, MUD (https://mud.dev/), Gnosis Safe
  • Integrated TestRPC testing to simplify TDD and BDD (Specflow) development.
  • Key storage using Web3 storage standard.
  • Simplified account life cycle for both managed by third party client (personal) or stand alone (signed transactions).
  • Low level Interception of RPC calls.
  • Code generation of smart contracts services.

Quick installation

Nethereum provides two types of packages. Standalone packages targeting Netstandard 1.1, net451 and where possible net351 to support Unity3d. There is also a Nethereum.Portable library which combines all the packages into a single portable library. As netstandard evolves and is more widely supported, the portable library might be eventually deprecated.

To install the latest version:

Windows/Mac/Linux users

dotnet add package Nethereum.Web3

Simple Code generation of Contract definitions

If you are working with smart contracts, you can quickly code generate contract definitions using the vscode solidity extension (please check the documentation for other options)

Code generation of Contract Definitions

Main Libraries

Project SourceNuget_PackageDescription
Nethereum.Web3NuGet versionEthereum Web3 Class Library simplifying the interaction via RPC. Includes contract interaction, deployment, transaction, encoding / decoding and event filters
Nethereum.UnityUnity3d integration, libraries can be found in the Nethereumreleases

Core Libraries

Project SourceNuget_PackageDescription
Nethereum.ABINuGet versionEncoding and decoding of ABI Types, functions, events of Ethereum contracts
Nethereum.EVMEthereum Virtual Machine API
Nethereum.HexNuGet versionHexTypes for encoding and decoding String, BigInteger and different Hex helper functions
Nethereum.RPCNuGet versionCore RPC Class Library to interact via RCP with an Ethereum client
Nethereum.JsonRpc.ClientNuGet versionNethereum JsonRpc.Client core library to use in conjunction with either the JsonRpc.RpcClient, the JsonRpc.IpcClient or other custom Rpc provider
Nethereum.JsonRpc.RpcClientNuGet versionJsonRpc Rpc Client using Http
Nethereum JsonRpc IpcClientNuGet versionJsonRpc IpcClient provider for Windows, Linux and Unix
Nethereum.RLPNuGet versionRLP encoding and decoding
Nethereum.KeyStoreNuGet versionKeystore generation, encryption and decryption for Ethereum key files using the Web3 Secret Storage definition,https://github.com/ethereum/wiki/wiki/Web3-Secret-Storage-Definition
Nethereum.SignerNuGet versionNethereum signer library to sign and verify messages, RLP and transactions using an Ethereum account private key
Nethereum.ContractsNuGet versionCore library to interact via RPC with Smart contracts in Ethereum
Nethereum.IntegrationTestingIntegration testing module
Nethereum.HDWalletNuGet versionGenerates an HD tree of Ethereum compatible addresses from a randomly generated seed phrase (using BIP32 and BIP39)

Note: IPC is supported for Windows, Unix and Linux but is only available using Nethereum.Web3 not Nethereum.Portable

Smart contract API Libraries

Project SourceNuget_PackageDescription
Nethereum.ENSNuGet versionEthereum Name service library (original ENS) WIP to upgrade to latest ENS

Utilities

Project SourceDescription
Nethereum.Generator.Console
Nethereum.ConsoleA collection of command line utilities to interact with Ethereum and account management
TestchainsPre-configured devchains for fast response (PoA)
DappHybridA cross-platform hybrid hosting mechanism for web based decentralised applications

Training modules

Project SourceDescription
Nethereum.WorkbooksXamarin Workbook tutorials including executable code
Nethereum.TutorialsTutorials to run on VS Studio

Code samples

SourceDescription
Keystore generatorKeystore file generator
FaucetWeb application template for an Ether faucet
Nethereum FlappyThe source code files for the Unity3d game integrating with Ethereum
Nethereum Game SampleSample game demonstrating how to integrate Nethereum withUrhoSharp's SamplyGame to build a cross-platform game interacting with Ethereum
Nethereum UI wallet sampleCross platform wallet example using Nethereum, Xamarin.Forms and MvvmCross, targeting: Android, iOS, Windows Mobile, Desktop (windows 10 uwp), IoT with the Raspberry PI and Xbox.
Nethereum Windows wallet sampleWindows forms wallet sample providing the core functionality for Loading accounts from different mediums, Ether transfer, Standard token interaction. This is going to be the basis for the future cross-platform wallet / dapp
Nethereum Windows wallet sampleWindows forms wallet sample providing the core functionality for Loading accounts from different mediums, Ether transfer, Standard token interaction. This is going to be the basis for the future cross-platform wallet / dapp
Blazor/Blockchain ExplorerWasm blockchain explorer based onBlazor andReactiveUI

Video guides

There are a few video guides, which might be helpful to get started.NOTE: These videos are for version 1.0, so some areas have changed.

Please use the Nethereum playground for the latest samples.

Introductions

These are two videos that can take you through all the initial steps from creating a contract to deployment, one in the classic windows, visual studio environment and another in a cross platform mac and visual studio code.

Windows, Visual Studio

This video takes you through the steps of creating a smart contract, compiling it, starting a private chain and deploying it using Nethereum.

Smart contracts, private test chain and deployment to Ethereum with Nethereum

Introduction to Calls, Transactions, Events, Filters and Topics

This hands on demo provides an introduction to calls, transactions, events filters and topics

Introduction to Calls, Transactions, Events, Filters and Topics

Mappings, Structs, Arrays and complex Functions Output (DTOs)

This video provides an introduction on how to store and retrieve data from structs, mappings and arrays decoding multiple output parameters to Data Transfer Objects

Mappings, Structs, Arrays and complex Functions Output (DTOs)

Thanks and Credits

  • Many thanks to Cass for the fantastic logo (https://github.com/c055) and recreating one of the @ethereumjs logo ideas for Nethereumethereumjs/organization#1
  • Many thanks to everyone in Maker for providing very early feedback.
  • Many thanks to everyone who has submitted a request for extra features, help or bugs either here in github, gitter/discord or other channels, you are continuously shaping this project.A big shout out specially to @slothbag, @matt.tan, @knocte, @TrekDev, @raymens, @rickzanux, @naddison36, @bobsummerwill, @brendan87, @dylanmckendry that were using Nethereum and providing great feedback from the beginning.@djsowa Marcin Sowa for his help on IPC in Linux.
  • Everyone in the Ethereum, Consensys and the blockchain community.
  • Huge shout out to everyone developing all the different Ethereum implementations Geth, Parity, EthereumJ, EthCpp, ethereum-js (and every other utility around it), python (in the different shapes), ruby (digix guys), solidity, vyper, serpent, web3 implementations (web3js the first) and ethjs, web3j, etc, etc and last but not least the .Net Bitcoin implementation.
  • And many thanks to all you that keep helping and encouraging directly or indirectily.

[8]ページ先頭

©2009-2025 Movatter.jp