Skip to content

Commit 78542a3

Browse files
priscoanMarcoFalke
authored andcommitted
doc: Fix PSBT howto and example parameters
* Remove outdated reference to replaceable parameter * Fix address reference * Unify quotation and italicization of parameters * Fix PSBT reference
1 parent 4dac24d commit 78542a3

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

doc/psbt.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ the command line in case `bitcoin-cli` is used.
9090
Setup:
9191
- All three call `getnewaddress` to create a new address; call these addresses
9292
*Aalice*, *Abob*, and *Acarol*.
93-
- All three call `getaddressinfo X`, with *X* their respective address, and
93+
- All three call `getaddressinfo "X"`, with *X* their respective address, and
9494
remember the corresponding public keys. Call these public keys *Kalice*,
9595
*Kbob*, and *Kcarol*.
9696
- All three now run `addmultisigaddress 2 ["Kalice","Kbob","Kcarol"]` to teach
@@ -105,28 +105,28 @@ Setup:
105105
output. Again, it may be necessary to explicitly specify the addresstype
106106
in order to get a result that matches. This command won't enable them to
107107
initiate transactions later, however.
108-
- They can now give out *D* as address others can pay to.
108+
- They can now give out *Amulti* as address others can pay to.
109109

110110
Later, when *V* BTC has been received on *Amulti*, and Bob and Carol want to
111111
move the coins in their entirety to address *Asend*, with no change. Alice
112112
does not need to be involved.
113113
- One of them - let's assume Carol here - initiates the creation. She runs
114-
`walletcreatefundedpsbt [] {"Asend":V} 0 false {"subtractFeeFromOutputs":[0], "includeWatching":true}`.
115-
We call the resulting PSBT *P*. P does not contain any signatures.
114+
`walletcreatefundedpsbt [] {"Asend":V} 0 {"subtractFeeFromOutputs":[0], "includeWatching":true}`.
115+
We call the resulting PSBT *P*. *P* does not contain any signatures.
116116
- Carol needs to sign the transaction herself. In order to do so, she runs
117-
`walletprocesspsbt P`, and gives the resulting PSBT *P2* to Bob.
117+
`walletprocesspsbt "P"`, and gives the resulting PSBT *P2* to Bob.
118118
- Bob inspects the PSBT using `decodepsbt "P2"` to determine if the transaction
119119
has indeed just the expected input, and an output to *Asend*, and the fee is
120120
reasonable. If he agrees, he calls `walletprocesspsbt "P2"` to sign. The
121121
resulting PSBT *P3* contains both Carol's and Bob's signature.
122-
- Now anyone can call `finalizepsbt "P2"` to extract a fully signed transaction
122+
- Now anyone can call `finalizepsbt "P3"` to extract a fully signed transaction
123123
*T*.
124124
- Finally anyone can broadcast the transaction using `sendrawtransaction "T"`.
125125

126126
In case there are more signers, it may be advantageous to let them all sign in
127127
parallel, rather passing the PSBT from one signer to the next one. In the
128128
above example this would translate to Carol handing a copy of *P* to each signer
129-
separately. They can then all invoke `walletprocesspsbt P`, and end up with
129+
separately. They can then all invoke `walletprocesspsbt "P"`, and end up with
130130
their individually-signed PSBT structures. They then all send those back to
131131
Carol (or anyone) who can combine them using `combinepsbt`. The last two steps
132132
(`finalizepsbt` and `sendrawtransaction`) remain unchanged.

0 commit comments

Comments
 (0)