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,500 points
888 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,100 points
913 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,100 points
558 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,100 points
2,443 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,350 points
3,663 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
1,663 views
0 votes
1 answer

Hyperledger Sawtooth vs Quorum in concurrency and speed Ask

Summary: Both should provide similar reliability of ...READ MORE

answered Sep 26, 2018 in IoT (Internet of Things) by Upasana
• 8,620 points
1,215 views
+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,610 points
948 views
+1 vote
1 answer

How hyperledger fabric is stored on a PC?

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

answered Apr 7, 2018 in Blockchain by Christine
• 15,790 points
595 views
0 votes
1 answer
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP