pub struct TransactionDetails {Show 15 fields
pub hash: B256,
pub block_number: u64,
pub block_hash: B256,
pub category: Option<String>,
pub rollup: Option<String>,
pub blobs: Vec<BlobInfo>,
pub block: BlockInfo,
pub from: Address,
pub to: Address,
pub max_fee_per_blob_gas: u128,
pub blob_as_calldata_gas_used: u128,
pub blob_as_calldata_gas_fee: u128,
pub blob_gas_base_fee: u128,
pub blob_gas_max_fee: u128,
pub blob_gas_used: u128,
}Expand description
Response for a transaction.
Fields§
§hash: B256The hash of this tx.
block_number: u64§block_hash: B256The hash of the block this tx is contained in.
category: Option<String>The category of this tx, if any
rollup: Option<String>The rollup this tx corresponds to, if any
blobs: Vec<BlobInfo>The info about the blobs in this tx.
block: BlockInfo§from: AddressSender address.
to: AddressReceiver address,
max_fee_per_blob_gas: u128The max fee per blob gas for EIP-4844 blob transactions.
blob_as_calldata_gas_used: u128§blob_as_calldata_gas_fee: u128§blob_gas_base_fee: u128§blob_gas_max_fee: u128§blob_gas_used: u128Implementations§
Source§impl TransactionDetails
impl TransactionDetails
Sourcepub fn blob_sidecar(&self) -> BlobTransactionSidecar
pub fn blob_sidecar(&self) -> BlobTransactionSidecar
Returns the sidecar for the transaction.
Trait Implementations§
Source§impl Clone for TransactionDetails
impl Clone for TransactionDetails
Source§fn clone(&self) -> TransactionDetails
fn clone(&self) -> TransactionDetails
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TransactionDetails
impl Debug for TransactionDetails
Source§impl Default for TransactionDetails
impl Default for TransactionDetails
Source§fn default() -> TransactionDetails
fn default() -> TransactionDetails
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TransactionDetails
impl<'de> Deserialize<'de> for TransactionDetails
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
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 TransactionDetails
impl PartialEq for TransactionDetails
Source§impl Serialize for TransactionDetails
impl Serialize for TransactionDetails
impl Eq for TransactionDetails
impl StructuralPartialEq for TransactionDetails
Auto Trait Implementations§
impl Freeze for TransactionDetails
impl RefUnwindSafe for TransactionDetails
impl Send for TransactionDetails
impl Sync for TransactionDetails
impl Unpin for TransactionDetails
impl UnwindSafe for TransactionDetails
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
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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>
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 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>
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