How is a smart contract stored on a Blockchain?

+1 vote

I understand that a smart contract can be complied into an EVM bytecode and deployed on the blockchain in a block having a specified height and a transaction hash. But when the state of the block changes, how does the blockchain record this change, when a transaction has been issued to interact with that smart contract to change its state (e.g. the value of a variable)?

Apr 4, 2018 in Blockchain by nsv999
• 5,050 points
124 views

1 answer to this question.

+1 vote
Best answer

Smart contract template and transaction events are both stateless and immutable. They're both stored in blockchain. The final smart contract state isn't stored in blocks directly, rather it is computed by node (ethereum virtual machine) from previously mentioned templates and transactions.

answered Apr 4, 2018 by Christine
• 15,790 points

selected Aug 16, 2018 by Omkar

Related Questions In Blockchain

0 votes
1 answer

How can I synchronize smart contract on blockchain?

This is how it is on Blockchain. ...READ MORE

answered May 29, 2018 in Blockchain by Perry
• 17,010 points
23 views
0 votes
1 answer

How is a request sent from an app to a smart contract?

Yes, the contract is distributed by every node ...READ MORE

answered Jun 4, 2018 in Blockchain by Perry
• 17,010 points
40 views
0 votes
1 answer

How do I withdraw the balance from a contract on Ethereum test blockchain?

Your need to improvise your code a ...READ MORE

answered Aug 3, 2018 in Blockchain by Perry
• 17,010 points
58 views
0 votes
2 answers

How do I interact with a smart contract on a private network through web3.js

I found a blog that explains how ...READ MORE

answered Aug 20, 2018 in Blockchain by slayer
• 29,050 points
191 views
0 votes
1 answer

Truffle tests not running after truffle init

This was a bug. They've fixed it. ...READ MORE

answered Sep 11, 2018 in Blockchain by Christine
• 15,790 points
107 views
0 votes
1 answer
+3 votes
2 answers

How to run ethereumjs using Node.JS

You need to install testrpc globally on ...READ MORE

answered Mar 27, 2018 in Blockchain by ned_crew
• 1,620 points
119 views
+1 vote
1 answer

How hyperledger fabric is stored on a PC?

Firstly, your web application will interact with ...READ MORE

answered Apr 6, 2018 in Blockchain by Christine
• 15,790 points
58 views
0 votes
1 answer