Add listunspent RPC call

Returns a brief json summary of each utxo found by calling
ListUnspentWitness in the wallet. The two arguments are the
minimum and maximum number of conrfirmations (0=include
unconfirmed)
This commit is contained in:
AdamISZ committed 2018-12-11 15:26:38 +01:00
1 parent 71444e74ac
commit 9bb2a26948
12 files changed
+1076 -558

No files matched your search

+1
View File
@@ -349,6 +349,7 @@ func (b *BtcWallet) ListUnspentWitness(minConfs, maxConfs int32) (
Hash: *txid,
Index: output.Vout,
},
Confirmations: output.Confirmations,
}
witnessOutputs = append(witnessOutputs, utxo)
}
+1
View File
@@ -52,6 +52,7 @@ var (
type Utxo struct {
AddressType AddressType
Value btcutil.Amount
Confirmations int64
PkScript []byte
RedeemScript []byte
WitnessScript []byte