How to get total ETH volume done by a contract.
Can you give more details?
You need this in solidity? What you mean by total volume?
I mean say i have a marketplace contract. How do i calculated all the total eth sent in and out of the contract. i assume it will have to query the sold items tables in moralis database and add all the items sold. Was wondering if anyone has this figured out
Sometimes you can sync events in Moralis db and process them in case that it uses events with all the information that you need
Yeah i have a sold items event. Just donβt know how to compute it so it keeps adding up the value of how much items was sold and storing it in the db