pub struct GetBlockStats {Show 29 fields
pub average_fee: Amount,
pub average_fee_rate: Option<FeeRate>,
pub average_tx_size: u32,
pub block_hash: BlockHash,
pub fee_rate_percentiles: Vec<Option<FeeRate>>,
pub height: u32,
pub inputs: u32,
pub max_fee: Amount,
pub max_fee_rate: Option<FeeRate>,
pub max_tx_size: u32,
pub median_fee: Amount,
pub median_time: u32,
pub median_tx_size: u32,
pub minimum_fee: Amount,
pub minimum_fee_rate: Option<FeeRate>,
pub minimum_tx_size: u32,
pub outputs: u32,
pub subsidy: Amount,
pub segwit_total_size: u32,
pub segwit_total_weight: Option<Weight>,
pub segwit_txs: u32,
pub time: u32,
pub total_out: Amount,
pub total_size: u32,
pub total_weight: Option<Weight>,
pub total_fee: Amount,
pub txs: u32,
pub utxo_increase: i32,
pub utxo_size_increase: i32,
}Expand description
Models the result of JSON-RPC method getblockstats.
Fields§
§average_fee: AmountAverage fee in the block.
average_fee_rate: Option<FeeRate>Average feerate.
average_tx_size: u32Average transaction size.
block_hash: BlockHashThe block hash (to check for potential reorgs).
fee_rate_percentiles: Vec<Option<FeeRate>>Feerates at the 10th, 25th, 50th, 75th, and 90th percentile weight unit (in satoshis per virtual byte).
height: u32The height of the block.
inputs: u32The number of inputs (excluding coinbase).
max_fee: AmountMaximum fee in the block.
max_fee_rate: Option<FeeRate>Maximum feerate (in satoshis per virtual byte).
max_tx_size: u32Maximum transaction size.
median_fee: AmountTruncated median fee in the block.
median_time: u32The block median time past.
median_tx_size: u32Truncated median transaction size
minimum_fee: AmountMinimum fee in the block.
minimum_fee_rate: Option<FeeRate>Minimum feerate (in satoshis per virtual byte).
minimum_tx_size: u32Minimum transaction size.
outputs: u32The number of outputs.
subsidy: AmountThe block subsidy.
segwit_total_size: u32Total size of all segwit transactions.
segwit_total_weight: Option<Weight>Total weight of all segwit transactions divided by segwit scale factor (4).
segwit_txs: u32The number of segwit transactions.
time: u32The block time.
total_out: AmountTotal amount in all outputs (excluding coinbase and thus reward [ie subsidy + totalfee]).
total_size: u32Total size of all non-coinbase transactions.
total_weight: Option<Weight>Total weight of all non-coinbase transactions divided by segwit scale factor (4).
total_fee: AmountThe fee total.
txs: u32The number of transactions (excluding coinbase).
utxo_increase: i32The increase/decrease in the number of unspent outputs.
utxo_size_increase: i32The increase/decrease in size for the utxo index (not discounting op_return and similar).