Is there a way to get the total value of a ETH address, not only its ETH value? I know Etherscan shows this on their website but I don't know if there is an API where I can grab this data, preferably through python.

enter image description here

For reference I can see the token value and ETH value and adding those should give the total wallet value. How can I do this using an API?

1 Answer 1


Seems like etherscan only provides ETH balance (in eth) in their APIs.

But you could get all of the tokens of an account with ethers.js (or web3.py it doesn't really change much) like this, get the token's name, and fetch the coingecko apis.

Another way would be checking uniswap tokenA/tokenB and then calculating the $ value, this would be way more accurate but also more complicated.

Unfortunately, there is no easy way of doing this.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.