Where are the transaction details of a smart contract is written in Ethereum

0 votes
There are a couple of questions I'm confused about regarding the Ethereum blockchain.

First, where in the blockchain is a newly created transaction stored?  When designing a contract I have seen that it is usually restricted to two parties that enter into it, and for other people to use the contract a new instance of the contract has to be created, is this correct.? Or should 1 contract be designed in a way that everyone uses it and only one instance of it is ever created.
Jul 11, 2018 in Blockchain by aryya
• 7,450 points

1 answer to this question.

0 votes

First ques:where in the blockchain is a newly created transaction stored ? In the blocks that each node stores. will my transaction details reside on every block after block X or only on block X + 1 ? Each transaction only resides in a block. Each block is related with the previous block, so your transaction is throughout all the blockchain.

second Ques: And will my transaction details be the only details on that block, or will that block contain every transaction that happened within that time period ?
It depends on the implementation of Blockchain. For example, Bitcoin blocks store all the transactions that have been sent throughout 10 minutes, because each block is mined every 10 minutes (more or less). Second Blockchain is a distributed system, where all the members are at the same level. So, they get the consensus about what they are going to do, i.e. all the members have to agree about the functions of their Blockchain. For each Blockchain, you can have more than one contract. But I'm going to explain it more simply. The Smart Contract is the code that is installed on all the nodes of the Blockchain, and every request is executed against it. So, every node/member must have the same.

answered Jul 11, 2018 by Shashank
• 10,400 points

Related Questions In Blockchain

0 votes
0 answers
0 votes
1 answer

How do I send back ethers to the sender of the tokens in a smart contract?

Whenever a smart contract receives ether via ...READ MORE

answered May 30, 2018 in Blockchain by Perry
• 17,100 points
+1 vote
1 answer
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
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
+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
0 votes
1 answer

Can a hacker change data of a smart sontract without call contract function?

A contract's content cannot be changed internally. ...READ MORE

answered Apr 8, 2018 in Blockchain by Shashank
• 10,400 points
0 votes
1 answer
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP