Skip to main content

GetBlockStatsResponse

Struct GetBlockStatsResponse 

Source
pub struct GetBlockStatsResponse {
Show 31 fields pub avgfee: Option<u64>, pub avgfeerate: Option<u64>, pub avgtxsize: Option<u64>, pub blockhash: Option<BlockHash>, pub feerate_percentiles: Option<Value>, pub height: Option<u64>, pub ins: Option<u64>, pub maxfee: Option<u64>, pub maxfeerate: Option<f64>, pub maxtxsize: Option<u64>, pub medianfee: Option<u64>, pub mediantime: Option<u64>, pub mediantxsize: Option<u64>, pub minfee: Option<u64>, pub minfeerate: Option<u64>, pub mintxsize: Option<u64>, pub outs: Option<u64>, pub subsidy: Option<u64>, pub swtotal_size: Option<u64>, pub swtotal_weight: Option<u64>, pub swtxs: Option<u64>, pub time: Option<u64>, pub total_out: Option<u64>, pub total_size: Option<u64>, pub total_weight: Option<u64>, pub totalfee: Option<u64>, pub txs: Option<u64>, pub utxo_increase: Option<u64>, pub utxo_increase_actual: Option<u64>, pub utxo_size_inc: Option<u64>, pub utxo_size_inc_actual: Option<u64>,
}
Expand description

Response for the GetBlockStats RPC method

Fields§

§avgfee: Option<u64>

Average fee in the block

§avgfeerate: Option<u64>

Average feerate (in satoshis per virtual byte)

§avgtxsize: Option<u64>

Average transaction size

§blockhash: Option<BlockHash>

The block hash (to check for potential reorgs)

§feerate_percentiles: Option<Value>

Feerates at the 10th, 25th, 50th, 75th, and 90th percentile weight unit (in satoshis per virtual byte)

§height: Option<u64>

The height of the block

§ins: Option<u64>

The number of inputs (excluding coinbase)

§maxfee: Option<u64>

Maximum fee in the block

§maxfeerate: Option<f64>

Maximum feerate (in satoshis per virtual byte)

§maxtxsize: Option<u64>

Maximum transaction size

§medianfee: Option<u64>

Truncated median fee in the block

§mediantime: Option<u64>

The block median time past

§mediantxsize: Option<u64>

Truncated median transaction size

§minfee: Option<u64>

Minimum fee in the block

§minfeerate: Option<u64>

Minimum feerate (in satoshis per virtual byte)

§mintxsize: Option<u64>

Minimum transaction size

§outs: Option<u64>

The number of outputs

§subsidy: Option<u64>

The block subsidy

§swtotal_size: Option<u64>

Total size of all segwit transactions

§swtotal_weight: Option<u64>

Total weight of all segwit transactions

§swtxs: Option<u64>

The number of segwit transactions

§time: Option<u64>

The block time

§total_out: Option<u64>

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

§total_size: Option<u64>

Total size of all non-coinbase transactions

§total_weight: Option<u64>

Total weight of all non-coinbase transactions

§totalfee: Option<u64>

The fee total

§txs: Option<u64>

The number of transactions (including coinbase)

§utxo_increase: Option<u64>

The increase/decrease in the number of unspent outputs (not discounting op_return and similar)

§utxo_increase_actual: Option<u64>

The increase/decrease in the number of unspent outputs, not counting unspendables

§utxo_size_inc: Option<u64>

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

§utxo_size_inc_actual: Option<u64>

The increase/decrease in size for the utxo index, not counting unspendables

Trait Implementations§

Source§

impl Clone for GetBlockStatsResponse

Source§

fn clone(&self) -> GetBlockStatsResponse

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for GetBlockStatsResponse

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for GetBlockStatsResponse

Source§

fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>
where D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl PartialEq for GetBlockStatsResponse

Source§

fn eq(&self, other: &GetBlockStatsResponse) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Serialize for GetBlockStatsResponse

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for GetBlockStatsResponse

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
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> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
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.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,