File tree Expand file tree Collapse file tree 4 files changed +16
-8
lines changed Expand file tree Collapse file tree 4 files changed +16
-8
lines changed Original file line number Diff line number Diff line change @@ -96,7 +96,8 @@ pub struct ScanTxOutSetUnspent {
96
96
#[ serde( rename = "scriptPubKey" ) ]
97
97
pub script_pubkey : String ,
98
98
/// A specialized descriptor for the matched scriptPubKey
99
- pub desc : String ,
99
+ #[ serde( rename = "desc" ) ]
100
+ pub descriptor : String ,
100
101
/// The total amount in BTC of unspent output
101
102
pub amount : f64 ,
102
103
/// Height of the unspent transaction output
Original file line number Diff line number Diff line change @@ -358,7 +358,8 @@ pub struct ScanTxOutSetStart {
358
358
/// The current block height (index)
359
359
pub height : u64 ,
360
360
/// The hash of the block at the tip of the chain
361
- pub bestblock : String ,
361
+ #[ serde( rename = "bestblock" ) ]
362
+ pub best_block : String ,
362
363
/// The unspents
363
364
pub unspents : Vec < ScanTxOutSetUnspent > ,
364
365
/// The total amount of all found unspent outputs in BTC
@@ -375,7 +376,8 @@ pub struct ScanTxOutSetUnspent {
375
376
#[ serde( rename = "scriptPubKey" ) ]
376
377
pub script_pubkey : String ,
377
378
/// An output descriptor
378
- pub desc : String ,
379
+ #[ serde( rename = "desc" ) ]
380
+ pub descriptor : String ,
379
381
/// The total amount in BTC of unspent output
380
382
pub amount : f64 ,
381
383
/// Height of the unspent transaction output
Original file line number Diff line number Diff line change @@ -461,7 +461,8 @@ pub struct ScanTxOutSetStart {
461
461
/// The current block height (index)
462
462
pub height : u64 ,
463
463
/// The hash of the block at the tip of the chain
464
- pub bestblock : String ,
464
+ #[ serde( rename = "bestblock" ) ]
465
+ pub best_block : String ,
465
466
/// The unspents
466
467
pub unspents : Vec < ScanTxOutSetUnspent > ,
467
468
/// The total amount of all found unspent outputs in BTC
@@ -478,7 +479,8 @@ pub struct ScanTxOutSetUnspent {
478
479
#[ serde( rename = "scriptPubKey" ) ]
479
480
pub script_pubkey : String ,
480
481
/// An output descriptor
481
- pub desc : String ,
482
+ #[ serde( rename = "desc" ) ]
483
+ pub descriptor : String ,
482
484
/// The total amount in BTC of unspent output
483
485
pub amount : f64 ,
484
486
/// Whether this is a coinbase output
Original file line number Diff line number Diff line change @@ -122,7 +122,8 @@ pub struct ScanTxOutSetStart {
122
122
/// The current block height (index)
123
123
pub height : u64 ,
124
124
/// The hash of the block at the tip of the chain
125
- pub bestblock : String ,
125
+ #[ serde( rename = "bestblock" ) ]
126
+ pub best_block : String ,
126
127
/// The unspents
127
128
pub unspents : Vec < ScanTxOutSetUnspent > ,
128
129
/// The total amount of all found unspent outputs in BTC
@@ -139,15 +140,17 @@ pub struct ScanTxOutSetUnspent {
139
140
#[ serde( rename = "scriptPubKey" ) ]
140
141
pub script_pubkey : String ,
141
142
/// An output descriptor
142
- pub desc : String ,
143
+ #[ serde( rename = "desc" ) ]
144
+ pub descriptor : String ,
143
145
/// The total amount in BTC of unspent output
144
146
pub amount : f64 ,
145
147
/// Whether this is a coinbase output
146
148
pub coinbase : bool ,
147
149
/// Height of the unspent transaction output
148
150
pub height : u64 ,
149
151
/// Blockhash of the unspent transaction output
150
- pub blockhash : String ,
152
+ #[ serde( rename = "blockhash" ) ]
153
+ pub block_hash : String ,
151
154
/// Number of confirmations of the unspent transaction output when the scan was done
152
155
pub confirmations : u64 ,
153
156
}
You can’t perform that action at this time.
0 commit comments