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,030 points
97 views

1 answer to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
+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
• 16,450 points
18 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
• 16,450 points
29 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
• 16,450 points
36 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,040 points
127 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
63 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,610 points
92 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
49 views
0 votes
1 answer

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.