tronprotocol / wallet-cli

Wallet CLI
GNU Lesser General Public License v3.0
604 stars 422 forks source link

Add resource price and memo fee query interfaces for wallet-cli #666

Closed lxcmyf closed 11 months ago

lxcmyf commented 1 year ago

Rationale

In Java tron, there are already interfaces for resource unit price query/wallet/getbandwidthprices and/wallet/getenergyprices, as well as querying memo fee/wallet/getmemofee. These interfaces support HTTP and gRPC calls, but not wallet-cli. There, it is to add these APIs to wallet-cli so that make it convenient for developers to use.

Implementation

Due to the fact that wallet cli, as a client, interacts with TRON service through gRPC, simply add gRPC calls to /wallet/getbandwidthprices,/wallet/getenergyprices and /wallet/getmemofee.

yuekun0707 commented 1 year ago

sounds great, I use wallet-cli all the time, glad to see the implementation~

halibobo1205 commented 1 year ago

LGTM