Struct bitcoincore_rpc_json::GetMempoolEntryResult

source ·
pub struct GetMempoolEntryResult {
Show 14 fields pub vsize: u64, pub weight: Option<u64>, pub time: u64, pub height: u64, pub descendant_count: u64, pub descendant_size: u64, pub ancestor_count: u64, pub ancestor_size: u64, pub wtxid: Txid, pub fees: GetMempoolEntryResultFees, pub depends: Vec<Txid>, pub spent_by: Vec<Txid>, pub bip125_replaceable: bool, pub unbroadcast: Option<bool>,
}

Fields§

§vsize: u64

Virtual transaction size as defined in BIP 141. This is different from actual serialized size for witness transactions as witness data is discounted.

§weight: Option<u64>

Transaction weight as defined in BIP 141. Added in Core v0.19.0.

§time: u64

Local time transaction entered pool in seconds since 1 Jan 1970 GMT

§height: u64

Block height when transaction entered pool

§descendant_count: u64

Number of in-mempool descendant transactions (including this one)

§descendant_size: u64

Virtual transaction size of in-mempool descendants (including this one)

§ancestor_count: u64

Number of in-mempool ancestor transactions (including this one)

§ancestor_size: u64

Virtual transaction size of in-mempool ancestors (including this one)

§wtxid: Txid

Hash of serialized transaction, including witness data

§fees: GetMempoolEntryResultFees

Fee information

§depends: Vec<Txid>

Unconfirmed transactions used as inputs for this transaction

§spent_by: Vec<Txid>

Unconfirmed transactions spending outputs from this transaction

§bip125_replaceable: bool

Whether this transaction could be replaced due to BIP125 (replace-by-fee)

§unbroadcast: Option<bool>

Whether this transaction is currently unbroadcast (initial broadcast not yet acknowledged by any peers) Added in Bitcoin Core v0.21

Trait Implementations§

source§

impl Clone for GetMempoolEntryResult

source§

fn clone(&self) -> GetMempoolEntryResult

Returns a copy 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 GetMempoolEntryResult

source§

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

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

impl<'de> Deserialize<'de> for GetMempoolEntryResult

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 GetMempoolEntryResult

source§

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

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Serialize for GetMempoolEntryResult

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 Eq for GetMempoolEntryResult

source§

impl StructuralPartialEq for GetMempoolEntryResult

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

§

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>,

§

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>,

§

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<V, T> VZip<V> for T
where V: MultiLane<T>,

source§

fn vzip(self) -> V

source§

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