Code Monkey home page Code Monkey logo

tron.net's Introduction

Build status NuGet GitHub license

tron.net

N|Solid

Tron.Net is a port in .NET standard of the Tron protocol

This library is still in experimental mode, use it with discretion, suggestions and PR are welcome.

Downloads

The latest stable release of the Tron.Net.Client available on NuGet

The latest stable release of the Tron.Net.Protocol available on NuGet

How to use it

  • You can download the Tron.Net.Client package, implement the IChannelConfiguration interface, and use the implementation of the different services avaiable:

-- IWallet

-- IWalletExtension

-- IWalletSolidity

or

  • You can download the Tron.Net.Protocol and create your own library to interact with the Tron Network using the Tron.Net.Protocol.Api.Grpc generated clients

Crypto

BouncyCastle is used as library to generate all hashes, the underlying decision on this is: it works, is fast, is reliable.

In order to create a new Address an ECKey must be created, make sure you store that, since at this moment there is no plan to provide a store for generated keys.

Generating a Tron wallet address (MainNet or TestNet) is as easy as 1 line of code

-- var address = WalletClient.MainNetWalletClient();

Examples

You can find in the tools folder 2 projects:

  • Tron.Net.Client.NetCoreRunnerTest a simple dotnet core application that connects to a local node that contains an example with a JSON configuration
  • Tron.Net.Client.Tron.Net.Client.NetFrameworkRunnerTest a simple dotnet framework 4.7 application that connects to a local node that contains an example with a configuration via AppSettings

Advanced configuration

Tron.Net.Client is built upon the premise of flexibility, so the following interfaces to configure timeouts and Options for the respective grpc calls can be customised:

-- IWalletCallConfiguration

-- IWalletExtensionCallConfiguration

-- IWalletSolidityClientCallConfiguration

If using a DI framework like Autofac with assembly discovery, make sure to override the registration of AllClientsDefaultCallConfiguration which has a 10 seconds timeout by default

Logo Provided by Vecteezy

tron.net's People

Contributors

dariogriffo avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.