pub struct BlockExtras {Show 29 fields
pub total_fees: Sats,
pub median_fee: FeeRate,
pub fee_range: [FeeRate; 7],
pub reward: Sats,
pub pool: BlockPool,
pub avg_fee: Sats,
pub avg_fee_rate: FeeRate,
pub coinbase_raw: String,
pub coinbase_address: Option<String>,
pub coinbase_addresses: Vec<String>,
pub coinbase_signature: String,
pub coinbase_signature_ascii: String,
pub avg_tx_size: f64,
pub total_inputs: u64,
pub total_outputs: u64,
pub total_output_amt: Sats,
pub median_fee_amt: Sats,
pub fee_percentiles: [Sats; 7],
pub segwit_total_txs: u32,
pub segwit_total_size: u64,
pub segwit_total_weight: Weight,
pub header: String,
pub utxo_set_change: i64,
pub utxo_set_size: u64,
pub total_input_amt: Sats,
pub virtual_size: f64,
pub first_seen: Option<u64>,
pub orphans: Vec<String>,
pub price: Dollars,
}Expand description
Extended block data matching mempool.space /api/v1/blocks extras
Fields§
§total_fees: SatsTotal fees in satoshis
median_fee: FeeRateMedian fee rate in sat/vB
fee_range: [FeeRate; 7]Fee rate range: [min, 10%, 25%, 50%, 75%, 90%, max]
reward: SatsTotal block reward (subsidy + fees) in satoshis
pool: BlockPoolMining pool that mined this block
avg_fee: SatsAverage fee per transaction in satoshis
avg_fee_rate: FeeRateAverage fee rate in sat/vB
coinbase_raw: StringRaw coinbase transaction scriptsig as hex
coinbase_address: Option<String>Primary coinbase output address
coinbase_addresses: Vec<String>All coinbase output addresses
coinbase_signature: StringCoinbase output script in ASM format
coinbase_signature_ascii: StringCoinbase scriptsig decoded as ASCII
avg_tx_size: f64Average transaction size in bytes
total_inputs: u64Total number of inputs (excluding coinbase)
total_outputs: u64Total number of outputs
total_output_amt: SatsTotal output amount in satoshis
median_fee_amt: SatsMedian fee amount in satoshis
fee_percentiles: [Sats; 7]Fee amount percentiles in satoshis: [min, 10%, 25%, 50%, 75%, 90%, max]
segwit_total_txs: u32Number of segwit transactions
segwit_total_size: u64Total size of segwit transactions in bytes
segwit_total_weight: WeightTotal weight of segwit transactions
header: StringRaw 80-byte block header as hex
utxo_set_change: i64UTXO set change (total outputs - total inputs, includes unspendable like OP_RETURN). Note: intentionally differs from utxo_set_size diff which excludes unspendable outputs. Matches mempool.space/bitcoin-cli behavior.
utxo_set_size: u64Total spendable UTXO set size at this height (excludes OP_RETURN and other unspendable outputs)
total_input_amt: SatsTotal input amount in satoshis
virtual_size: f64Virtual size in vbytes
first_seen: Option<u64>Timestamp when the block was first seen (always null, not yet supported)
orphans: Vec<String>Orphaned blocks (always empty)
price: DollarsUSD price at block height
Trait Implementations§
Source§impl Clone for BlockExtras
impl Clone for BlockExtras
Source§fn clone(&self) -> BlockExtras
fn clone(&self) -> BlockExtras
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for BlockExtras
impl Debug for BlockExtras
Source§impl<'de> Deserialize<'de> for BlockExtras
impl<'de> Deserialize<'de> for BlockExtras
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<BlockExtras, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<BlockExtras, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Source§impl JsonSchema for BlockExtras
impl JsonSchema for BlockExtras
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read moreSource§impl Serialize for BlockExtras
impl Serialize for BlockExtras
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Auto Trait Implementations§
impl Freeze for BlockExtras
impl RefUnwindSafe for BlockExtras
impl Send for BlockExtras
impl Sync for BlockExtras
impl Unpin for BlockExtras
impl UnsafeUnpin for BlockExtras
impl UnwindSafe for BlockExtras
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more