knowing ETH supply from a contract have a lot of use cases in portfolio management. As far as i know there is no native way to query ETH supply from the contract. Is there any provable and trustless way to have it?
Asked
Active
Viewed 42 times
0
-
Does this answer your question? How to get a contract's balance in Solidity? – minhhn2910 Jan 08 '23 at 06:51
-
or you mean the total ETH supply available out there? – minhhn2910 Jan 08 '23 at 06:53
-
if you mean eth total supply, I guess requesting it to a few chainlink data providers would do the trick (quick check on chainlink market: tusd has such feed for instance) – DrGorilla.eth Jan 08 '23 at 21:15
-
I'm going to vote to close for now, but consider adding more context to this question and we can reopen. The above linked from minhhn2910 is accurate. – Patrick Collins Feb 11 '23 at 18:21