GetBlockStats

Struct GetBlockStats 

Source
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: Amount

Average fee in the block.

§average_fee_rate: Option<FeeRate>

Average feerate.

§average_tx_size: u32

Average transaction size.

§block_hash: BlockHash

The 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: u32

The height of the block.

§inputs: u32

The number of inputs (excluding coinbase).

§max_fee: Amount

Maximum fee in the block.

§max_fee_rate: Option<FeeRate>

Maximum feerate (in satoshis per virtual byte).

§max_tx_size: u32

Maximum transaction size.

§median_fee: Amount

Truncated median fee in the block.

§median_time: u32

The block median time past.

§median_tx_size: u32

Truncated median transaction size

§minimum_fee: Amount

Minimum fee in the block.

§minimum_fee_rate: Option<FeeRate>

Minimum feerate (in satoshis per virtual byte).

§minimum_tx_size: u32

Minimum transaction size.

§outputs: u32

The number of outputs.

§subsidy: Amount

The block subsidy.

§segwit_total_size: u32

Total size of all segwit transactions.

§segwit_total_weight: Option<Weight>

Total weight of all segwit transactions divided by segwit scale factor (4).

§segwit_txs: u32

The number of segwit transactions.

§time: u32

The block time.

§total_out: Amount

Total amount in all outputs (excluding coinbase and thus reward [ie subsidy + totalfee]).

§total_size: u32

Total 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: Amount

The fee total.

§txs: u32

The number of transactions (excluding coinbase).

§utxo_increase: i32

The increase/decrease in the number of unspent outputs.

§utxo_size_increase: i32

The increase/decrease in size for the utxo index (not discounting op_return and similar).

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.