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 25, 2018 in Blockchain by Johnathon
• 9,090 points
977 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 25, 2018 by Shashank
• 10,400 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 1,575 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
1,353 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
1,928 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,456 views
+1 vote
1 answer

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

yes all are over TCP/IP connections secured ...READ MORE

answered Aug 6, 2018 in Blockchain by aryya
• 7,460 points
1,435 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,400 points
3,775 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,400 points
957 views
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