Skip to main content

BlockExtras

Struct BlockExtras 

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

Total fees in satoshis

§median_fee: FeeRate

Median fee rate in sat/vB

§fee_range: [FeeRate; 7]

Fee rate range: [min, 10%, 25%, 50%, 75%, 90%, max]

§reward: Sats

Total block reward (subsidy + fees) in satoshis

§pool: BlockPool

Mining pool that mined this block

§avg_fee: Sats

Average fee per transaction in satoshis

§avg_fee_rate: FeeRate

Average fee rate in sat/vB

§coinbase_raw: String

Raw coinbase transaction scriptsig as hex

§coinbase_address: Option<String>

Primary coinbase output address

§coinbase_addresses: Vec<String>

All coinbase output addresses

§coinbase_signature: String

Coinbase output script in ASM format

§coinbase_signature_ascii: String

Coinbase scriptsig decoded as ASCII

§avg_tx_size: f64

Average transaction size in bytes

§total_inputs: u64

Total number of inputs (excluding coinbase)

§total_outputs: u64

Total number of outputs

§total_output_amt: Sats

Total output amount in satoshis

§median_fee_amt: Sats

Median fee amount in satoshis

§fee_percentiles: [Sats; 7]

Fee amount percentiles in satoshis: [min, 10%, 25%, 50%, 75%, 90%, max]

§segwit_total_txs: u32

Number of segwit transactions

§segwit_total_size: u64

Total size of segwit transactions in bytes

§segwit_total_weight: Weight

Total weight of segwit transactions

§header: String

Raw 80-byte block header as hex

§utxo_set_change: i64

UTXO 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: u64

Total spendable UTXO set size at this height (excludes OP_RETURN and other unspendable outputs)

§total_input_amt: Sats

Total input amount in satoshis

§virtual_size: f64

Virtual 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: Dollars

USD price at block height

Trait Implementations§

Source§

impl Clone for BlockExtras

Source§

fn clone(&self) -> BlockExtras

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 BlockExtras

Source§

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

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

impl<'de> Deserialize<'de> for BlockExtras

Source§

fn deserialize<__D>( __deserializer: __D, ) -> Result<BlockExtras, <__D as Deserializer<'de>>::Error>
where __D: Deserializer<'de>,

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

impl JsonSchema for BlockExtras

Source§

fn schema_name() -> Cow<'static, str>

The name of the generated JSON Schema. Read more
Source§

fn schema_id() -> Cow<'static, str>

Returns a string that uniquely identifies the schema produced by this type. Read more
Source§

fn json_schema(generator: &mut SchemaGenerator) -> Schema

Generates a JSON Schema for this type. Read more
Source§

fn inline_schema() -> bool

Whether JSON Schemas generated for this type should be included directly in parent schemas, rather than being re-used where possible using the $ref keyword. Read more
Source§

impl Serialize for BlockExtras

Source§

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

Serialize this value into the given Serde serializer. Read more

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

Source§

fn __clone_box(&self, _: Private) -> *mut ()

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> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts 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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts 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
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
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> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> VecValue for T
where T: Debug + Clone + Send + Sync + 'static,