@@ -2087,10 +2087,32 @@ pub enum PubKeyOrAddress<'a> {
2087
2087
PubKey ( & ' a PublicKey ) ,
2088
2088
}
2089
2089
2090
+ #[ derive( Serialize , Clone , PartialEq , Eq , Debug ) ]
2091
+ /// Start a scan of the block filter index for an [output descriptor](https://github.com/bitcoin/bitcoin/blob/master/doc/descriptors.md).
2092
+ pub struct ScanBlocksRequest < ' a > {
2093
+ /// List of descriptors to scan
2094
+ pub scanobjects : & ' a [ ScanBlocksRequestDescriptor ] ,
2095
+ /// Height at which to start scanning
2096
+ pub start_height : Option < u64 > ,
2097
+ /// Height at which to stop scanning
2098
+ pub stop_height : Option < u64 > ,
2099
+ /// Filter type. Only "basic" is supported for now.
2100
+ pub filtertype : Option < String > ,
2101
+ /// Additional scan options. Only "filter_false_positives" is supported for now.
2102
+ pub options : Option < ScanBlocksOptions > ,
2103
+ }
2104
+
2105
+ #[ derive( Serialize , Clone , PartialEq , Eq , Debug ) ]
2106
+ /// Options struct for `scanblocks` rpc
2107
+ pub struct ScanBlocksOptions {
2108
+ /// Scan for a single descriptor
2109
+ pub filter_false_positives : Option < bool > ,
2110
+ }
2111
+
2090
2112
#[ derive( Serialize , Deserialize , Clone , PartialEq , Eq , Debug ) ]
2091
2113
#[ serde( untagged) ]
2092
- /// Start a scan of the UTXO set for an [output descriptor](https://github.com/bitcoin/bitcoin/blob/master/doc/descriptors.md).
2093
- pub enum ScanBlocksRequest {
2114
+ /// Descriptors to scan in `scanblocks` rpc
2115
+ pub enum ScanBlocksRequestDescriptor {
2094
2116
/// Scan for a single descriptor
2095
2117
Single ( String ) ,
2096
2118
/// Scan for a descriptor with xpubs
0 commit comments