<p>Why do you want to save data in your database?</p>
<p>Your answer doesn't explain why but the answer can have a pattern, described below</p>
<blockquote>
<p>When I need to store additional information when I use bitcoin RPC</p>
</blockquote>
<p>In general, you don't need to store additional information from the DB, for instance, you don't need to store the block in your DB (I hope if you don't want pass all the life to see your script make insert on the database) because Bitcoin core use the DB to indexed each block and get the data back when you will ask some block.</p>
<p>There are special cases when you need to save the data, for example, you are doing your personal web wallet for fun (I did with c-lightning) and what has a different wallet, and maybe you want to store the name (it is called wallet_name) of the last wallet that is using, or maybe you want to save additional information, as the name of a special address that you generated to receive some donation.</p>
<p>In conclusion, with Bitcoin RPC you have the access to the Bitcoin core node and you have the power to do all things that you want, but maybe you can use your application to learn how bitcoin work and if it is a good idea store data locally from bitcoin network.</p>
<blockquote>
<p>I have also read about getblock, but I don't know what it really is.</p>
</blockquote>
<p>You can start to read how bitcoin work with <a href="https://github.com/bitcoinbook/bitcoinbook" rel="nofollow noreferrer">this good resource</a> (In my opinion).</p>

CC BY-SA 4.0
2021-01-12T22:46:13.390Z
Thanks to answer my question, i need save the data in my database because is more fast to return data in my application, but thanks very much.
Aisakk
CC BY-SA 4.0
2021-01-12T11:23:49.120Z
2021-01-12T11:23:49.120Z
vincenzopalazzo
<p>i'm make one application about bitcoin, and I'm searching that data i can save, I'm read that the public key i can save in my database and privit key no, but i dont know, what more data i can save, I explain?, I'm would like to guide me, I have also read about getblock, but I don't know what it really is.</p>
<p>To be more specific, I would like to know exactly what data I have to save in the database and what performs each of the aforementioned functions of bitcoin.</p>

<json-rpc><php>
What data i can save?
Aisakk
# What data i can save?

(Asked by: username_0 on 2021-01-11)

i'm make one application about bitcoin, and I'm searching that data i can save, I'm read that the public key i can save in my database and privit key no, but i dont know, what more data i can save, I explain?, I'm would like to guide me, I have also read about getblock, but I don't know what it really is.

To be more specific, I would like to know exactly what data I have to save in the database and what performs each of the aforementioned functions of bitcoin.

**Tags:** json-rpc, php


---

## 1 answers

### Answer by username_1 on 2021-01-12. Score: 0 | Accepted answer

Why do you want to save data in your database?

Your answer doesn't explain why but the answer can have a pattern, described below

> When I need to store additional information when I use bitcoin RPC

In general, you don't need to store additional information from the DB, for instance, you don't need to store the block in your DB (I hope if you don't want pass all the life to see your script make insert on the database) because Bitcoin core use the DB to indexed each block and get the data back when you will ask some block.

There are special cases when you need to save the data, for example, you are doing your personal web wallet for fun (I did with c-lightning) and what has a different wallet, and maybe you want to store the name (it is called wallet\_name) of the last wallet that is using, or maybe you want to save additional information, as the name of a special address that you generated to receive some donation.

In conclusion, with Bitcoin RPC you have the access to the Bitcoin core node and you have the power to do all things that you want, but maybe you can use your application to learn how bitcoin work and if it is a good idea store data locally from bitcoin network.

> I have also read about getblock, but I don't know what it really is.

You can start to read how bitcoin work with [this good resource](https://github.com/bitcoinbook/bitcoinbook) (In my opinion).

> **Comments:**
> **username_0**: Thanks to answer my question, i need save the data in my database because is more fast to return data in my application, but thanks very much.  

---

