-
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
Apr 3, 2024
1 parent
67d39a5
commit 2792f0f
Showing
4 changed files
with
68 additions
and
35 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,42 @@ | ||
How to connect bitcoinlib to a Bcoin node | ||
How to connect Bitcoinlib to a Bcoin node | ||
========================================= | ||
|
||
\ | ||
Bcoin is a full bitcoin node implementation, which can be used to parse the blockchain, send transactions and run a | ||
wallet. With a Bcoin node you can retrieve transaction and utxo information for specific addresses, this is not easily | ||
possible with a `Bitcoind <manuals.setup-bitcoind-connection.html>`_ node. So if you want to use Bitcoinlib with a | ||
wallet and not be dependant on external providers the best option is to run a local Bcoin node. | ||
|
||
|
||
Install Bcoin node | ||
------------------ | ||
|
||
You can find some instructions on how to install a bcoin node on https://coineva.com/install-bcoin-node-ubuntu.html. | ||
|
||
There are also some Docker images available. We have created a Docker image with the most optimal settings for | ||
bitcoinlib. You can install them with the following command. | ||
|
||
.. code-block:: bash | ||
docker pull blocksmurfer/bcoin | ||
Use Bcoin node with Bitcoinlib | ||
------------------------------ | ||
|
||
To use Bcoin with bitcoinlib add the credentials to the providers.json configuration file in the .bitcoilib directory. | ||
|
||
.. code-block:: text | ||
"bcoin": { | ||
"provider": "bcoin", | ||
"network": "bitcoin", | ||
"client_class": "BcoinClient", | ||
"provider_coin_id": "", | ||
"url": "https://user:pass@localhost:8332/", | ||
"api_key": "", | ||
"priority": 10, | ||
"denominator": 100000000, | ||
"network_overrides": null | ||
}, | ||
You can increase the priority so the Service object always connects to the Bcoin node 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
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