@@ -1045,6 +1045,39 @@ pub enum ImportMultiRequestScriptPubkey<'a> {
10451045 Script ( & ' a Script ) ,
10461046}
10471047
1048+ #[ derive( Clone , PartialEq , Eq , Debug , Deserialize , Serialize ) ]
1049+ pub struct GetMempoolInfoResult {
1050+ /// True if the mempool is fully loaded
1051+ pub loaded : bool ,
1052+ /// Current tx count
1053+ pub size : usize ,
1054+ /// Sum of all virtual transaction sizes as defined in BIP 141. Differs from actual serialized size because witness data is discounted
1055+ pub bytes : usize ,
1056+ /// Total memory usage for the mempool
1057+ pub usage : usize ,
1058+ /// Total fees for the mempool in BTC, ignoring modified fees through prioritisetransaction
1059+ #[ serde( with = "bitcoin::util::amount::serde::as_btc" ) ]
1060+ pub total_fee : Amount ,
1061+ /// Maximum memory usage for the mempool
1062+ #[ serde( rename = "maxmempool" ) ]
1063+ pub max_mempool : usize ,
1064+ /// Minimum fee rate in BTC/kvB for tx to be accepted. Is the maximum of minrelaytxfee and minimum mempool fee
1065+ #[ serde( rename = "mempoolminfee" , with = "bitcoin::util::amount::serde::as_btc" ) ]
1066+ pub mempool_min_fee : Amount ,
1067+ /// Current minimum relay fee for transactions
1068+ #[ serde( rename = "minrelaytxfee" , with = "bitcoin::util::amount::serde::as_btc" ) ]
1069+ pub min_relay_tx_fee : Amount ,
1070+ /// Minimum fee rate increment for mempool limiting or replacement in BTC/kvB
1071+ #[ serde( rename = "incrementalrelayfee" , with = "bitcoin::util::amount::serde::as_btc" ) ]
1072+ pub incremental_relay_fee : Amount ,
1073+ /// Current number of transactions that haven't passed initial broadcast yet
1074+ #[ serde( rename = "unbroadcastcount" ) ]
1075+ pub unbroadcast_count : usize ,
1076+ /// True if the mempool accepts RBF without replaceability signaling inspection
1077+ #[ serde( rename = "fullrbf" ) ]
1078+ pub full_rbf : bool ,
1079+ }
1080+
10481081#[ derive( Clone , PartialEq , Eq , Debug , Deserialize , Serialize ) ]
10491082pub struct GetMempoolEntryResult {
10501083 /// Virtual transaction size as defined in BIP 141. This is different from actual serialized
0 commit comments