Linked Questions

2
votes
1answer
552 views

Is there a way to view or otherwise verify a contract's source code? [duplicate]

In token sales usually the source code for the contract is published. Is there a way to verify whether the published code is actually deployed in the given address?
92
votes
8answers
39k views

What is an ABI and why is it needed to interact with contracts?

ABI is referenced in many places including the official Ethereum website. What is an ABI and why is it necessary to use?
23
votes
1answer
2k views

How does the solidity optimizer work?

The compiler for solidity supports the flag --optimize which performs some set of optimizations to the compiled solidity code, typically resulting in a reduction of gas costs. How does the optimizer ...
11
votes
1answer
4k views

How to find solidity code for a contract address

I need to find out the public contract code i.e. solidity code for a contract address. For eample, here it has a tab for contract code but it's in assembly and byte code only, which is not useful. ...
10
votes
1answer
2k views

Bytecode on block chain different from the one used when deploying

When I deploy a contract from node.js using the web3 JavaScript API (connected to a locally running geth), and then check the deployed bytecode using eth.getCode(address) (either from the JS console ...
7
votes
2answers
1k views

Why does solidity compiled bytecode not match data for creating transaction?

I'm trying to independently verify the source code of solidity contracts, and stumbled across a case where the compiled bytecode for the source code of the contract does not match the data of the ...
12
votes
1answer
448 views

Is there a way to detect which compiler version produced a contract binary?

Given the compiled bytecode on the blockchain, is there a way to detect which compiler version is being used in order to verify source matches bytecode without having to bruteforce all available ...
5
votes
1answer
541 views

Do you need to publish the contract ABI and address for others to interact with the contract?

Suppose you write a contract that you want others to interact with. My understanding is that if you want others to interact with your contract, you need to provide the contract's ABI and address. Is ...
2
votes
1answer
2k views

Is there a Solidity decompiler? [duplicate]

Is there a decompiler that will convert Solidity byte code back into source code? I am wondering how to verify code of contracts that are published to the blockchain.
4
votes
1answer
174 views

Trustlessness and Provability in DApp design

I am looking for suggestions or references on how to build proper trustlessness and provability into my DApps. These are DApp distinctives, but I find that thinking this through is like peeling back ...