3

When somebody runs a smart contract, what part goes into the blockchain?

The whole contract (in Solidity), only the transaction or the complete execution (contract and input data)?

4

The contract, transaction, and final state of executing the contract, is on the blockchain. Intermediate execution results are not stored on the blockchain.

New values in the storage of contracts, and events that are triggered, are written to the blockchain. Since contracts can create other contracts, the code of such contracts are also added.

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.