The Etherscan web page shows the creator address of a contract, like this ("Circle: Deployer" in the image, but I'm fine with just the address):
Is there a way how to get this address information using the Etherscan API, similar to how the source code and ABI of a contract can be read?
Best Answer
Etherscan/Polygonscan API Solution:
I did finally find the proper endpoint for these requests. You can batch a max of 5 contracts per request. The etherscan API seems more reliable than JSON RPC method mentioned below. Additionally the etherscan API is much faster. Use npm lib
node-fetch
if in a node-js context. Solution also works with polygonscan:Old Solution With EVM JSON RPC:
See this answer https://ethereum.stackexchange.com/a/65210/125787
The code looks like this and it may not work if the creator of the contract was another contract and not a wallet.