pub struct Transaction {Show 33 fields
pub hash: B256,
pub kind: u8,
pub chain_id: Option<u64>,
pub nonce: u64,
pub block_hash: Option<B256>,
pub block_number: Option<u64>,
pub transaction_index: Option<u64>,
pub block_timestamp: Option<u64>,
pub from: Address,
pub to: Option<Address>,
pub value: U256,
pub gas: u64,
pub gas_price: Option<U256>,
pub max_fee_per_gas: Option<U256>,
pub max_priority_fee_per_gas: Option<U256>,
pub access_list: Vec<AccessItem>,
pub input: Vec<u8>,
pub r: Option<U256>,
pub s: Option<U256>,
pub v: Option<U256>,
pub y_parity: Option<u64>,
pub request_id: Option<B256>,
pub ticket_id: Option<B256>,
pub refund_to: Option<Address>,
pub max_refund: Option<U256>,
pub submission_fee_refund: Option<U256>,
pub l1_base_fee: Option<U256>,
pub deposit_value: Option<U256>,
pub retry_to: Option<Address>,
pub retry_value: Option<U256>,
pub retry_data: Option<Vec<u8>>,
pub beneficiary: Option<Address>,
pub max_submission_fee: Option<U256>,
}Expand description
What eth_getTransactionByHash answers. Nitro’s own types carry the fields that tie them to the
parent chain; each is None on the types that lack it.
Fields§
§hash: B256§kind: u8§chain_id: Option<u64>§nonce: u64§block_hash: Option<B256>§block_number: Option<u64>§transaction_index: Option<u64>§block_timestamp: Option<u64>Unix seconds of its block.
from: Address§to: Option<Address>None for a creation.
value: U256§gas: u64§gas_price: Option<U256>§max_fee_per_gas: Option<U256>§max_priority_fee_per_gas: Option<U256>§access_list: Vec<AccessItem>§input: Vec<u8>§r: Option<U256>§s: Option<U256>§v: Option<U256>§y_parity: Option<u64>§request_id: Option<B256>A deposit’s or a retryable’s message number in the parent’s inbox, as a word.
ticket_id: Option<B256>A redeem’s ticket: the hash of the retryable it runs.
refund_to: Option<Address>Where a retryable’s or a redeem’s unspent gas is refunded.
max_refund: Option<U256>A redeem’s most refunded gas, in wei.
submission_fee_refund: Option<U256>A redeem’s refund of the submission fee, in wei.
l1_base_fee: Option<U256>A retryable’s parent base fee when submitted.
deposit_value: Option<U256>What a retryable brought from the parent, in wei.
retry_to: Option<Address>§retry_value: Option<U256>§retry_data: Option<Vec<u8>>§beneficiary: Option<Address>Who may cancel a retryable, and receives its call value if it never runs.
max_submission_fee: Option<U256>Implementations§
Source§impl Transaction
impl Transaction
pub const fn tx_kind(&self) -> TxKind
Sourcepub fn to_eip1559(&self) -> Option<Eip1559>
pub fn to_eip1559(&self) -> Option<Eip1559>
The type 2 transaction this record is of: rebuilt, it hashes to Transaction::hash once
signed with Transaction::signature.
Sourcepub fn message_number(&self) -> Option<U256>
pub fn message_number(&self) -> Option<U256>
The parent inbox’s message number a deposit or a retryable came in as.
Trait Implementations§
Source§impl Clone for Transaction
impl Clone for Transaction
Source§impl Debug for Transaction
impl Debug for Transaction
Source§impl<'de> Deserialize<'de> for Transaction
impl<'de> Deserialize<'de> for Transaction
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>,
impl Eq for Transaction
Source§impl PartialEq for Transaction
impl PartialEq for Transaction
impl StructuralPartialEq for Transaction
Auto Trait Implementations§
impl Freeze for Transaction
impl RefUnwindSafe for Transaction
impl Send for Transaction
impl Sync for Transaction
impl Unpin for Transaction
impl UnsafeUnpin for Transaction
impl UnwindSafe for Transaction
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.