Hey guys.
Maybe a silly question.
How does one can track a contract overall income?
I mean, lets say there is a contract for a token, how can i see how much fees have he made so far in bsc?

Feb 21, 2023, 10:14 AM
Just create a view function in the contract say getFee. The logic would depend on you fee structure but you can store a variable in your fees logic which stores and gets incremented on every transaction , later you can view that state variable.
Feb 21, 2023, 10:22 AM
Try BitQuery
Feb 21, 2023, 10:25 AM
+ tnx
Feb 21, 2023, 10:32 AM

© 2024 Draquery.com All rights reserved.