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
where `$VERSION` is the [latest version](https://crates.io/crates/payjoin-cli).
46
46
47
-
Next, create a directory for the sender & receiver and create a `config.toml` file for each:
47
+
Next, create a directory for the sender & receiver and create a file called `config.toml`for each. This file provides the information required for `payjoin-cli` to connect to your node and, for `v2`, to know which Payjoin Directory and OHTTP Relay to use.
48
48
49
49
```sh
50
50
mkdir sender receiver
51
51
touch sender/config.toml receiver/config.toml
52
52
```
53
53
54
-
Edit the `config.toml` files. Note that the `v2` feature requires a payjoin directory server and OHTTP relay.
This will output a [bitcoin URI](https://github.com/bitcoin/bips/blob/master/bip-0021.mediawiki) containing the receiver's address, amount, payjoin directory, and other session information the client needs. For example:
Note that the session can be paused by pressing `Ctrl+C`. The receiver can come back online and resume the session by running `payjoin-cli resume` again, and the sender may do a `send` against it while the receiver is offline.
104
105
@@ -122,7 +123,7 @@ Congratulations! You've completed a version 2 payjoin, which can be used for che
122
123
123
124
Config options can be passed from the command line, or manually edited in a `config.toml` file within the directory you run `payjoin-cli` from.
0 commit comments