Why Does Bitcoinlib Need a Database Backend?
I am a noob in Bitcoin and trying to do some basic programming like implement a watch only wallet or initiating a transfer using the python bitcoinlib
library.
From some reading of the documentation, it seems the library needs a back-end SQL database, although it creates the database transparently if needed.
So my question is, why? As in, I believed (correct me if I am wrong), all relevant transactions data since the genesis block are in the the Blockchain? And that is not really tabular/relational data suitable for a SQL interface? What's the role of the additional database?
Also, if I want to send sats, or get the balance of an XPUB, should not the library go query the main blockchain? Or does the SQL database acts as the data store? Why so?
from Recent Questions - Bitcoin Stack Exchange https://ift.tt/WscitAQ
via IFTTT