You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Merge bitcoindevkit#201: Docs: add just example for using bdk-cli with bitcoind regtest node
2524da3 docs: reformat and simplify README steps for just & bitcoind (Steve Myers)
b289a61 fix clippy warnings (Vihiga Tyonum)
c2573fc docs: update README steps for `just` & `bitcoind` (Vihiga Tyonum)
Pull request description:
### Description
Fixesbitcoindevkit#199
Update README to show how to use `just` command runner to start, connect and fund your bdk-cli wallet with local bitcoind regtest node. Also, fixed clippy warnings.
### Checklists
#### All Submissions:
* [x] I've signed all my commits
* [x] I followed the [contribution guidelines](https://github.com/bitcoindevkit/bdk-cli/blob/master/CONTRIBUTING.md)
* [x] I ran `cargo fmt` and `cargo clippy` before committing
ACKs for top commit:
notmandatory:
ACK 2524da3
tvpeter:
ACK 2524da3
Tree-SHA512: bf177a651cf97b18b183d56f3d6a7b439a95fbcfd0343b6b9bd422fdc828183555d8afcb057531a2ebca67892a0cbebba32de62e00e343d78082a3f92c95e74e
Copy file name to clipboardExpand all lines: README.md
+68-1Lines changed: 68 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -122,11 +122,78 @@ The below are some of the commands included:
122
122
123
123
```shell
124
124
just # list all available recipes
125
-
just start # start regtest bitcoind in default dir
126
125
just test# test the project
127
126
just build # build the project
128
127
```
129
128
129
+
### Using `Justfile` to run `bitcoind` as a Client
130
+
131
+
If you are testing `bdk-cli` in regtest mode and wants to use your `bitcoind` node as a blockchain client, the `Justfile` can help you to quickly do so. Below are the steps to use your `bitcoind` node in *regtest* mode with `bdk-cli`:
132
+
133
+
Note: You can modify the `Justfile` to reflect your nodes' configuration values. These values are the default values used in `bdk-cli`
134
+
> * default wallet: The set default wallet name is `regtest_default_wallet`
135
+
> * default data directory: The set default data directory is `~/.bdk-bitcoin`
136
+
> * RPC username: The set RPC username is `user`
137
+
> * RPC password: The set RPC password is `password`
138
+
139
+
#### Steps
140
+
141
+
1. Start bitcoind
142
+
```shell
143
+
just start
144
+
```
145
+
146
+
2. Create or load a bitcoind wallet with default wallet name
147
+
148
+
```shell
149
+
just create
150
+
```
151
+
or
152
+
```shell
153
+
just load
154
+
```
155
+
156
+
3. Generate a bitcoind wallet address to send regtest bitcoins to.
157
+
158
+
```shell
159
+
just address
160
+
```
161
+
162
+
4. Mine 101 blocks on regtest to bitcoind wallet address
163
+
```shell
164
+
just generate 101 $(just address)
165
+
```
166
+
167
+
5. Check the bitcoind wallet balance
168
+
```shell
169
+
just balance
170
+
```
171
+
172
+
6. Setup your `bdk-cli` wallet config and connect it to your regtest node to perform a `sync`
0 commit comments