listfunds: add scriptpubkey if it's known.

(Which it is, since 0.7.3).

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Changelog-Added: JSON: `listfunds` now has a 'scriptpubkey' field.
This commit is contained in:
Rusty Russell
2020-07-08 06:20:25 +09:30
committed by Christian Decker
parent 972432d285
commit 94de18ace7
3 changed files with 4 additions and 0 deletions

View File

@@ -33,6 +33,8 @@ appended)
.IP \[bu]
\fIaddress\fR
.IP \[bu]
\fIscriptpubkey\fR (the ScriptPubkey of the output, in hex)
.IP \[bu]
\fIstatus\fR (whether \fIunconfirmed\fR, \fIconfirmed\fR, or \fIspent\fR)
.IP \[bu]
\fIreserved\fR (whether this is UTXO is currently reserved for an in-flight tx)

View File

@@ -27,6 +27,7 @@ Each entry in *outputs* will include:
- *amount\_msat* (the same as *value*, but in millisatoshi with *msat*
appended)
- *address*
- *scriptpubkey* (the ScriptPubkey of the output, in hex)
- *status* (whether *unconfirmed*, *confirmed*, or *spent*)
- *reserved* (whether this is UTXO is currently reserved for an in-flight tx)