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
1,555 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,750 points

edited Mar 26, 2018 by Christine 2,126 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,805 views
0 votes
1 answer

How can I use IBM blockchain to store data?

I would recommend looking at the Fabric ...READ MORE

answered Jul 3, 2018 in Blockchain by charlie_brown
• 7,720 points
1,490 views
0 votes
1 answer

How to create own coins in Blockchain Ethereum wallet?

To create own coins you have to ...READ MORE

answered Jul 26, 2018 in Blockchain by slayer
• 29,370 points
1,208 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,750 points
2,712 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
2,294 views