5

I found this endpoint is to obtain the token balance from Ethereum blockchain, however, I noticed that this function doesn't work on Rospten network. Please advise

https://api.etherscan.io/api?module=account&action=tokenbalance&contractaddress=0x6bb495e358d7aab0540d9b38996e715fcc4f1ba2&address=0x63a5f2232a519321237e31d0a79f6c20e0e652d3&tag=latest&apikey=JKXR76EA1NK9XSKES1T2BNYBZ41T3BJ2JH

Possible I could have the same function works on Ropsten network?

2 Answers 2

0

just an update you can access it from this link

Somthing like this

https://api-goerli.etherscan.io

2
  • Hello. This does not really ad anymore information than the accepted answer. Aug 12, 2022 at 13:59
  • Yes but I couldn't add comment to that because I got a low rank haha, so just added this Aug 12, 2022 at 17:45
7

According to the docs, you must simply append "-ropsten" to the subdomain. Your URL should look as follows:

https://api-ropsten.etherscan.io/api?module=account&action=tokenbalance&contractaddress=0x6bb495e358d7aab0540d9b38996e715fcc4f1ba2&address=0x63a5f2232a519321237e31d0a79f6c20e0e652d3&tag=latest&apikey=JKXR76EA1NK9XSKES1T2BNYBZ41T3BJ2JH
1
  • @shane- I have a quick question for you here, can I have my local private geth node running on my local server with the etherscan api ?
    – David
    Aug 13, 2019 at 1:48

Your Answer

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

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