This guide helps you set up a Bitcoin node locally and run a Rust project that connects to the node.
- Rust installed on your system. You can install Rust from rustup.rs.
- Bitcoin Core installed and synced to the network. Download Bitcoin Core from bitcoin.org and follow the installation instructions.
- Build Bitcoin Core from source according to your operating system.
- Run Bitcoin Core and let it synchronize with the network. This process may take some time depending on your internet connection and hardware.
- Once Bitcoin Core is fully synchronized, you'll have a fully operational Bitcoin node.
-
Clone this repository to your local machine:
git clone git@github.com:isaack-njama/bitcoin-wallet.git
-
Navigate to the project directory:
cd bitcoin-wallet
-
Install dependencies and build the Rust project:
cargo build
-
Run Bitcoin Core (On a separate terminal):
bitcoind
-
Run the Rust project:
cargo run
This will execute the Rust project, which should establish a connection to your local Bitcoin node.
- The Rust project assumes that the Bitcoin node is running locally on testnet and the RPC port (
http://localhost:18332
). If your node is running on a different port or host, you'll need to adjust the configuration in the Rust project accordingly.
Contributions are welcome! If you find any issues or want to improve this guide, feel free to open a pull request.
This project is licensed under the MIT License.