TronSharp 1.0.5

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

// Install TronSharp as a Cake Tool
#tool nuget:?package=TronSharp&version=1.0.5

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.

Product Compatible and additional computed target framework versions.
.NET net7.0 is compatible.  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. 
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
1.0.5 1,019 7/24/2023
1.0.4 149 7/23/2023
1.0.3 148 7/23/2023
1.0.2 144 7/22/2023
1.0.1 145 7/22/2023
1.0.0 148 7/22/2023