Skip to content

Commit 0323df0

Browse files
authored
Merge pull request lightningdevkit#8 from grizznaut/patch-1
Update send-receive-test-payjoins.md
2 parents a08adaf + 9602b23 commit 0323df0

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

docs/send-receive-test-payjoins.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,17 +41,17 @@ Receiving a payjoin involves hosting an HTTP that the sender can reach. First, c
4141

4242
```console
4343
cd receive
44-
touch cargo.toml
44+
touch config.toml
4545
```
4646

4747
Edit the configuration file according to [your operating system's bitcoin data directory](https://en.bitcoin.it/wiki/Data_directory):
4848

4949
This sample is valid for a default datadir on MacOS:
5050

5151
```toml
52-
# receive/cargo.toml
52+
# receive/config.toml
5353
bitcoind_cookie = "~/Library/Application Support/Bitcoin/regtest/.cookie"
54-
bitcoind_rpchost = "http://localhost:18443/wallets/receive"
54+
bitcoind_rpchost = "http://localhost:18443/wallet/receive"
5555
```
5656

5757
Now, run the following command:
@@ -92,16 +92,16 @@ touch config.toml
9292
Edit the configuration file according to [your operating system's bitcoin data directory](https://en.bitcoin.it/wiki/Data_directory):
9393

9494
```toml
95-
# send/cargo.toml
95+
# send/config.toml
9696
bitcoind_cookie = "~/Library/Application Support/Bitcoin/regtest/.cookie"
97-
bitcoind_rpchost = "http://localhost:18443/wallets/send"
97+
bitcoind_rpchost = "http://localhost:18443/wallet/send"
9898
danger_accept_invalid_certs = true
9999
```
100100

101101
After configuration, assuming funded `send` and `receive` wallets in Bitcoin Core, running the following command **with your previous receiver genrated bitcoin URI** will send a payjoin from `send` to `receive`.
102102

103103
```console
104-
cargo run -- send $RECEIVE_URI
104+
cargo run -- send $RECEIVE_URI --fee-rate 1
105105
```
106106

107107
Make sure you replace `$RECEIVE_URI` with the bitcoin URI pasted from the receiver console.

0 commit comments

Comments
 (0)