@@ -9,8 +9,8 @@ use alloc::collections::BTreeMap;
99
1010use bitcoin:: address:: NetworkUnchecked ;
1111use bitcoin:: {
12- block, Address , Amount , Block , BlockHash , CompactTarget , FeeRate , Network , ScriptBuf , Target ,
13- TxMerkleNode , TxOut , Txid , Weight , Work , Wtxid ,
12+ block, Address , Amount , Block , BlockHash , CompactTarget , FeeRate , Network , OutPoint , ScriptBuf ,
13+ Target , TxMerkleNode , TxOut , Txid , Weight , Work , Wtxid ,
1414} ;
1515use serde:: { Deserialize , Serialize } ;
1616
@@ -626,6 +626,21 @@ pub struct GetTxOutSetInfo {
626626 pub total_amount : Amount ,
627627}
628628
629+ /// Models the result of JSON-RPC method `gettxspendingprevout`.
630+ #[ derive( Clone , Debug , PartialEq , Eq , Deserialize , Serialize ) ]
631+ #[ serde( deny_unknown_fields) ]
632+ pub struct GetTxSpendingPrevout ( pub Vec < GetTxSpendingPrevoutItem > ) ;
633+
634+ /// An individual result item from `gettxspendingprevout`.
635+ #[ derive( Clone , Debug , PartialEq , Eq , Deserialize , Serialize ) ]
636+ #[ serde( deny_unknown_fields) ]
637+ pub struct GetTxSpendingPrevoutItem {
638+ /// The outpoint containing the transaction id and vout value of the checked output.
639+ pub outpoint : OutPoint ,
640+ /// The transaction id of the mempool transaction spending this output (omitted if unspent).
641+ pub spending_txid : Option < Txid > ,
642+ }
643+
629644/// Models the result of JSON-RPC method `verifytxoutproof`.
630645#[ derive( Clone , Debug , PartialEq , Deserialize , Serialize ) ]
631646#[ serde( deny_unknown_fields) ]
0 commit comments