For example, the withdraw method on WithdrawDAO has methodID 0x3ccfd60b. Given the methodID, could it be decoded to know what method it calls ?


You can use the manually-maintained directory at https://www.4byte.directory to search for the method given the signature.

Here is the lookup for your example 0x3ccfd60b.

There are further plans for the use of this directory like moving the lookup table into a smart contract - see https://github.com/ethereum/mist/issues/955.


I don't think so.

As I understand it, Solidity takes the first few bytes of the sha3 hash of the contract's signature to identify methods. It can't be done in reverse unless you already had the source code.

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.