Giter VIP home page Giter VIP logo

tronsharp's Introduction

TronSharp: C# Library for Interacting with Tron Network

TronSharp is a powerful C# library that facilitates seamless interaction with the Tron network (TRX), its protocol, wallet, and smart contracts. Whether you are building decentralized applications (DApps) or integrating Tron functionalities into your existing projects, TronSharp simplifies the process, enabling you to focus on your application logic.

Features

  • Blockchain Interaction: TronSharp enables you to interact with the Tron blockchain effortlessly. You can query account information, transaction details, block data, broadcast transactions and more.

  • Wallet Management: With TronSharp, managing TRX wallets becomes a breeze. It supports various cryptographic algorithms.

  • Smart Contract Integration: TronSharp provides a comprehensive set of functions to deploy, invoke, and interact with smart contracts on the Tron network. It streamlines the process of integrating DApps with smart contracts.

Installation

To start using TronSharp in your C# project, you can either:

  1. Clone this GitHub repository and include the library in your project.
  2. Install the package from NuGet. TronSharp
PM> Install-Package TronSharp
or
dotnet add package TronSharp

Configuration

First, you need to config TronSharp in your Startup.cs You can specify your TronGrid API key, but it works without an API key too with less accuracy:

......
using TronSharp;
......

public void ConfigureServices(IServiceCollection services)
{
    ......

    services.AddTronSharp(x =>
    {
        x.Network = TronNetwork.MainNet;
        x.Channel = new GrpcChannelOption { Host = "grpc.shasta.trongrid.io", Port = 50051 };
        x.SolidityChannel = new GrpcChannelOption { Host = "grpc.shasta.trongrid.io", Port = 50052 };
        x.FreeApiKey = "input your free api key";
        x.ProApiKey = "input your pro api key";
    });

    ......
}

Please refer to the documentation for more detailed examples and explanations.

Donations

If you find TronSharp useful and would like to support its development, you can make a donation to the following TRX wallet address:

TNDTGoJ3dDvEmNHPCit9UUJVqFswaY7yvC

Your contributions are greatly appreciated and will motivate us to continue improving TronSharp.

Contributing

Contributions to TronSharp are welcomed and encouraged. If you encounter any issues, have suggestions, or want to add new features, feel free to open a GitHub issue or submit a pull request.

Before submitting a pull request, make sure to read our Contribution Guidelines.

License

TronSharp is released under the MIT License.

Acknowledgements

We would like to express our gratitude to all the developers and contributors who made this library possible.

tronsharp's People

Contributors

mziii 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.