Any tips of querying historical transaction history (incoming ETH) for smart contract?

Is there any way to use one of the existing APIs to query the historical incoming ETH into a smart contract (example would be profits to an NFT contract)?

Would need data sum per day in order to chart past 24 hours, 7 days, 30 days, etc.

Otherwise, I may have to save this data to a database or maybe query the Graph. Hoping there is an API that can make it easier.

I think that you will have to get the transactions or transfers for an nft contract, save data in a database and then show it.

1 Like