https://github.com/oikos-cash/tron-api-client
Swiss army knife CLI for Tron
https://github.com/oikos-cash/tron-api-client
cli tron tron-protocol
Last synced: about 1 year ago
JSON representation
Swiss army knife CLI for Tron
- Host: GitHub
- URL: https://github.com/oikos-cash/tron-api-client
- Owner: oikos-cash
- Created: 2020-04-06T16:13:24.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-07-02T15:31:18.000Z (almost 6 years ago)
- Last Synced: 2025-03-24T12:39:49.184Z (about 1 year ago)
- Topics: cli, tron, tron-protocol
- Language: Rust
- Homepage: https://docs.rs/tron-api-client/
- Size: 463 KB
- Stars: 6
- Watchers: 0
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# tron-api-client
[](https://crates.io/crates/tron-api-client)
[](https://docs.rs/tron-api-client)
[](https://travis-ci.org/oikos-cash/tron-api-client)
[](https://ci.appveyor.com/project/oikos-cash/tron-api-client)
**WORK IN PROGRESS**
A Rust library for Tron's HTTP APIs.
## Install
See [releases](https://github.com/oikos-cash/tron-api-client/releases).
If you have Rust: `cargo install tron-api-client`.
## Usage
```bash
tron 0.0.5
Tron API client and CLI
USAGE:
tron [OPTIONS]
FLAGS:
-h, --help Prints help information
-V, --version Prints version information
OPTIONS:
--network Specify tron network (uses trongrid.io) [env: TRON_NETWORK=shasta] [default: main]
[possible values: main, shasta]
SUBCOMMANDS:
get_account Get Account
get_account_net Get Account Bandwidth
get_asset_issue_list List TRC10 Tokens
get_block_by_id Get Block by Id
get_block_by_latest_num Get Latest Blocks
get_block_by_limit_next Get Range of Blocks
get_block_by_num Get Block by Number
get_chain_parameters Get Chain Parameters
get_contract Get Contract
get_node_info Get Node Info
get_now_block Get Latest Block
get_transaction_by_id Get Transaction by Id
get_transaction_info_by_id Like get_transaction_by_id but more detailed
help Prints this message or the help of the given subcommand(s)
list_nodes List Nodes
list_witnesses List Witnesses
```