near / near-cli-rs

near CLI is your human-friendly companion that helps to interact with NEAR Protocol from command line.
https://near.cli.rs
Apache License 2.0
86 stars 52 forks source link

Display the transaction fee in NEAR and approximate $ after transaction is executed #320

Closed frol closed 1 month ago

frol commented 2 months ago

So after any transaction being executed, we currently display logs, status, and link to Explorer, and I suggest we add a summary of the transaction fees in NEAR and USD equivalent.

image

Here is the function you need to apply the changes: https://github.com/near/near-cli-rs/blob/a1bde9a58dbba0fdaa7813d02752488cd9ec761e/src/common.rs#L1102-L1107

amiremohamadi commented 2 months ago

I'll be taking on this issue and working on a solution. just to make sure, by fee you mean the gas amount in ExecutionOutcomeView::gas_burnt?