When compiling a .sol file that contains multiple contracts you get multiple binaries.

How do I know which one belongs to the root contract?

For example looking at etherdelta contract code I can see a few contracts but the binary presented eventually by etherscan is the one of contract EtherDelta, which is the root contract.

So I'm asking - when compiling a .sol file with multiple contracts how do I know which contract is the root contract, or in other words, how does etherscan knows that?

1 Answer 1


It seems that the name of the contract is given by the contract owner during etherscan verification.

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.