@@ -97,19 +97,29 @@ pub struct BlockSummary {
9797 pub merkle_root : bitcoin:: hash_types:: TxMerkleNode ,
9898}
9999
100+ /// Address statistics, includes the address, and the utxo information for the address.
100101#[ derive( Debug , Clone , Deserialize , PartialEq , Eq ) ]
101102pub struct AddressStats {
103+ /// The address.
102104 pub address : String ,
105+ /// The summary of transactions for this address information, already on chain
103106 pub chain_stats : AddressTxsSummary ,
107+ /// The summary of transactions for this address information, currently in the mempool
104108 pub mempool_stats : AddressTxsSummary ,
105109}
106110
111+ /// Contains a summary of the transactions for an address.
107112#[ derive( Debug , Copy , Clone , PartialEq , Eq , Deserialize ) ]
108113pub struct AddressTxsSummary {
114+ /// The number of funded transaction outputs, in
109115 pub funded_txo_count : u32 ,
116+ /// The sum of the funded transaction outputs, in satoshis.
110117 pub funded_txo_sum : u64 ,
118+ /// The number of spent transaction outputs.
111119 pub spent_txo_count : u32 ,
120+ /// The sum of the spent transaction outputs, in satoshis.
112121 pub spent_txo_sum : u64 ,
122+ /// The total number of transactions
113123 pub tx_count : u32 ,
114124}
115125
0 commit comments