-
Notifications
You must be signed in to change notification settings - Fork 204
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Cryp Toon
committed
Nov 15, 2024
1 parent
c2c77e3
commit 3ea7463
Showing
6 changed files
with
53 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
How to connect Bitcoinlib to a Blockbook server | ||
=============================================== | ||
|
||
Trezor's Blockbook is a back-end service for Trezor Suite and can also be used as back-end service provider for | ||
Bitcoinlib. Blockbook indexes addresses, transactions, unspent outputs and balances and can be used for fast | ||
blockchain queries. Blockbook also support Litecoin, Dash, Dogecoin and various testnets. | ||
|
||
If you want to use Bitcoinlib as a wallet, run many blockchain queries or write an application which is dependant on | ||
frequent requests to blockchain service providers you should use a Blockbook service or install a | ||
`Bcoin <manuals.setup-bcoin.html>`_ node. | ||
|
||
|
||
Install Blockbook server | ||
------------------------ | ||
|
||
You can find some instructions on how to install a Blockbook server on | ||
https://coineva.com/blockbook-setup-as-bitcoinlib-backend.html. | ||
|
||
You will need a powerful server with enough memory and diskspace. Blockbook runs a full Bitcoin core node on the | ||
background, and maintains a large RocksDB database to store additional blockchain data. But once installed and | ||
synchronised it runs fast and smooth. | ||
|
||
|
||
Use Blockbook with Bitcoinlib | ||
----------------------------- | ||
|
||
To use Blockbook with bitcoinlib add the credentials to the providers.json configuration file in the .bitcoinlib directory. | ||
|
||
.. code-block:: json | ||
"blockbook": { | ||
"provider": "blockbook", | ||
"network": "bitcoin", | ||
"client_class": "BlockbookClient", | ||
"provider_coin_id": "", | ||
"url": "https://<servername>:9130/", | ||
"api_key": "", | ||
"priority": 20, | ||
"denominator": 100000000, | ||
"network_overrides": null | ||
} | ||
You can increase the priority so the Service object always connects to the Blockbook service first. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters