Reputation: 4009
It is trivial to find a contract on Ethereum. and once found, it is easy to use. But how do I find out what the contract really does? How can I verify what code will be executed?
Upvotes: 3
Views: 1928
Reputation: 8534
In order to verify that a piece of source code matches what you see on the blockchain, you need to know the version of the compiler used to create the contract.
Note: Get blockchain data like so:
web3.eth.getCode('0xabcd1234....');
Upvotes: 5