6 个版本

0.1.0 2020年7月2日
0.0.5 2020年4月7日

#4 in #tron

MIT 许可证

420KB
1K SLoC

tron-api-client

documentation Build Status Build Status Appveyor

进行中

Tron HTTP API 的 Rust 库。

安装

版本.

如果你有 Rust: cargo install tron-api-client.

用法

tron 0.0.5
Tron API client and CLI

USAGE:
    tron [OPTIONS] <SUBCOMMAND>

FLAGS:
    -h, --help       Prints help information
    -V, --version    Prints version information

OPTIONS:
        --network <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 <num> 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

依赖项

~8–12MB
~232K SLoC