Project

trx

0.0
No release in over a year
TRON HTTP API client
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 0.14
~> 3.2

Runtime

~> 1.2
~> 2.2.0
~> 1.3.0
~> 0.7.3
 Project Readme

Trx-rb

Small ruby gem to sign tron transactions and interact with api

This gem is not published to rubygems!

Usage

Generate transaction signature

key_pair = Trx::Key.new(priv: 'your_rivate_key')
key_pair.sign(Trx::Utils.hex_to_bin('transaction_id'))

Interact with api

client = Trx::HttpClient.new(Trx::HttpClient::MAINNET_HOST, trongrig_token: 'trongrid_token')
client.perform_command('walletsolidity/gettransactionbyid', JSON.generate({ value: 'xxxxxxxxxxxxxxxx' }))

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/darkponny/trx-rb. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the code of conduct.

License

The gem is available as open source under the terms of the MIT License.

Code of Conduct

Everyone interacting in the Trx project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.