how can I save my nodejs blockchain??

0 votes

I tried to code my own Blockchain, just to understand the whole concept better. The problem I am working on right now is that the data does not get saved. I want to run the whole blockchain on a (maybe) express server and access it by a RESTful API. Because of that, I need a way to store the Blockchain somewhere. I also have already some ideas but none of them seems like a good one.


I would love to hear some answers, for example, what frameworks and so on I could use. Or maybe any ideas on how to store the database at all. Thanks for your help :)

Jul 23, 2018 in Blockchain by Perry
• 17,020 points
39 views

1 answer to this question.

0 votes

point 1 and 2 are not immune to 3, infact, they are pretty much the same exept you are storing the data differently - you need to have a place to store the blockchain, but it's not decentralized if there is only 1 node, but you have to start somewhere

so i don't see anything wrong with storing the data in a database, it's just not really a decentralized block chain without lots of nodes (i.e. a network each has a copy of the blockchain)

answered Jul 23, 2018 by Shashank
• 10,350 points

Related Questions In Blockchain

0 votes
1 answer

How can i read headers of blockchain in multichain?

You could use a recent feature known ...READ MORE

answered Mar 26, 2018 in Blockchain by Perry
• 17,020 points
50 views
+1 vote
1 answer
0 votes
1 answer

How can I modify stored data in blockchain??

One of the important feature of a ...READ MORE

answered Apr 18, 2018 in Blockchain by Christine
• 15,790 points
65 views
0 votes
1 answer

How can i create a simple P2P network on a blockchain?

To develop your own cryptocurrency, you need ...READ MORE

answered Apr 20, 2018 in Blockchain by Christine
• 15,790 points
192 views
0 votes
1 answer

How to add https security for Node js?

You need to add the key and cert to the createServer function. const options ...READ MORE

answered Aug 10, 2018 in Blockchain by digger
• 26,550 points
44 views
0 votes
1 answer

How do I implement Blockchain in my project

It depends on the objective of the ...READ MORE

answered Jun 26, 2018 in Blockchain by Shashank
• 10,350 points
37 views