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)?
Ethereum Stack Exchange is a question and answer site for users of Ethereum, the decentralized application platform and smart contract enabled blockchain. It only takes a minute to sign up.Sign up to join this community
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.