A command line program to compute and print out in/out flow of BNB of the target wallet/contract address
It will involve utilizing 3 related APIs of bscscan.com as follows
in order to have an understanding of BNB in/out flow, and balance respectively for each type of transaction as well as final balance for entire address.
cargo build
.HX_INOUTFLOW_API_KEY
to api-key that you have from step 2.cargo r -- <target-address>
inoutflow-bsc <target-address>
Sample output is similar to following
``` Found 594 txs! - BNB outflow: 1837.683964544 BNBs - BNB inflow: 2.006 BNBs - Net in/out balance: -1835.677964544 BNBs
Found 134 internal txs! - BNB outflow: 0 BNBs - BNB inflow: 1836.96689 BNBs - Net in/out balance: 1836.96689 BNBs
Total 728 txs Total balance: 0.042507285 BNBs ```
MIT, Wasin Thonkaew