#transaction #wallet #blockchain #tron

anychain-tron

A Rust library for Tron-focused cryptocurrency wallets, enabling seamless transactions on the Tron blockchain

12 releases

0.2.9 Nov 12, 2024
0.2.7 Sep 7, 2024
0.2.5 Jul 5, 2024
0.2.2 Oct 23, 2023
0.1.2 Jul 11, 2023

#726 in Magic Beans

Download history 130/week @ 2024-07-29 16/week @ 2024-08-05 9/week @ 2024-08-12 35/week @ 2024-08-19 28/week @ 2024-08-26 189/week @ 2024-09-02 31/week @ 2024-09-09 16/week @ 2024-09-16 79/week @ 2024-09-23 8/week @ 2024-09-30 5/week @ 2024-10-07 15/week @ 2024-10-14 71/week @ 2024-10-28 96/week @ 2024-11-04 145/week @ 2024-11-11

313 downloads per month

MIT/Apache

1.5MB
31K SLoC

anychain-tron

anychain-tron is a Rust library that provides a simple and unified interface for interacting with the Tron blockchain. It is designed to be easy to use and integrate into your Rust projects, while maintaining compatibility with the anychain-bitcoin library.

Features

  • Unified API for Tron blockchain operations
  • Support for mainnet and testnet networks
  • Account management (create, import, export)
  • Transaction building and signing
  • Querying blockchain data (balances, transactions, etc.)
  • Support for smart contracts and TRC10/TRC20 tokens

Installation

Add the following to your Cargo.toml file:

[dependencies]
anychain-tron = "0.2.8"

Then, run cargo build to download and compile the library.

Usage

Here's a simple example of how to create a new Tron account and query its balance:


For more examples and detailed usage instructions, please refer to the documentation.

Contributing

We welcome contributions from the community! If you'd like to contribute, please follow these steps:

  1. Fork the repository
  2. Create a new branch for your changes
  3. Make your changes and commit them to your branch
  4. Submit a pull request with a description of your changes

Please make sure to write tests for your changes and follow the Rust coding style.

License

anychain-tron is released under the MIT License. See the LICENSE file for more information.

Dependencies

~7MB
~126K SLoC