How to store state data in Ethereum blockchain?

+1 vote

Suppose I have an array of 200M users, now you wish to store more users (say 500M). Since each word of storage on the Ethereum blockchain requires 20K in gas fees.

Now, if I update a user's score and thus update the contract, do I need to store entire 500M words again??

Apr 24, 2018 in Blockchain by Johnathon
• 9,080 points
57 views

1 answer to this question.

+1 vote
Best answer

You won't have to overwrite the whole array if you're not changing the order of records. You just have to pay gas for the data that you add or update.

answered Apr 24, 2018 by Shashank
• 10,350 points

selected Aug 10, 2018 by Omkar

Related Questions In Blockchain

0 votes
1 answer

How to make sure transactions take no fee in a private Ethereum blockchain?

In a private ethereum network you have ...READ MORE

answered Mar 26, 2018 in Blockchain by Christine
• 15,790 points

edited Mar 26, 2018 by Christine 93 views
0 votes
1 answer

How to store picture(s) in a hyperledger blockchain channel

You can hold images as encrypted characters ...READ MORE

answered Jun 16, 2018 in Blockchain by charlie_brown
• 7,720 points
145 views
0 votes
1 answer
0 votes
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
140 views
0 votes
1 answer
0 votes
1 answer

Protocols used in a distributed/dlt system for the nodes to establish communication

yes all are over TCP/IP connections secured by TLS encryption in hashgraph architecture-hashgraph, ...READ MORE

answered Aug 6, 2018 in Blockchain by ariaholic
• 7,340 points
75 views
+1 vote
3 answers

How efficient is Ethereum in regard to its TPS??

TPS means transactions processing at any given ...READ MORE

answered Apr 16, 2018 in Blockchain by Shashank
• 10,350 points
1,303 views
+1 vote
1 answer

How is data retrieved in Ethereum?

Blockchain uses the concept of Merkle trees ...READ MORE

answered Apr 16, 2018 in Blockchain by Shashank
• 10,350 points
72 views