I have the address but I want to know the name of contract. Is there any way to get that from the etherscan API?


There is no special API method to get the name of contract. But if you are talking about ERC20 Tokens, you can try another method [BETA]:


It returns ERC20 token transfer events for a specific contract. So you can extract required information "tokenName":"Maker","tokenSymbol":"MKR" from the response.


getsourcecode Etherscan API endpoint returns the name of a contract. You can find the description of the endpoint here: https://etherscan.io/apis#contracts


It returns `` in the resulting JSON:

    "status": "1",
    "message": "OK",
    "result": [{
        "ContractName": "..."

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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