pub struct TransactionLegacy {
pub nonce: U256,
pub gas_price: U256,
pub gas_limit: U256,
pub to: Option<Address>,
pub value: Wei,
pub data: Vec<u8>,
}Fields§
§nonce: U256A monotonically increasing transaction counter for this sender
gas_price: U256The fee the sender pays per unit of gas
gas_limit: U256The maximum amount of gas the sender is willing to consume on a transaction
to: Option<Address>The receiving address (None for the zero address)
value: WeiThe amount of ETH to transfer
data: Vec<u8>Arbitrary binary data for a contract call invocation
Implementations§
Source§impl TransactionLegacy
impl TransactionLegacy
pub fn rlp_append_unsigned(&self, s: &mut RlpStream, chain_id: Option<u64>)
Sourcepub fn get_gas_limit(&self) -> Option<u64>
pub fn get_gas_limit(&self) -> Option<u64>
Returns self.gas as a u64, or None if self.gas > u64::MAX
Trait Implementations§
Source§impl Clone for TransactionLegacy
impl Clone for TransactionLegacy
Source§fn clone(&self) -> TransactionLegacy
fn clone(&self) -> TransactionLegacy
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 TransactionLegacy
impl Debug for TransactionLegacy
Source§impl Default for TransactionLegacy
impl Default for TransactionLegacy
Source§fn default() -> TransactionLegacy
fn default() -> TransactionLegacy
Returns the “default value” for a type. Read more
Source§impl PartialEq for TransactionLegacy
impl PartialEq for TransactionLegacy
impl Eq for TransactionLegacy
impl StructuralPartialEq for TransactionLegacy
Auto Trait Implementations§
impl Freeze for TransactionLegacy
impl RefUnwindSafe for TransactionLegacy
impl Send for TransactionLegacy
impl Sync for TransactionLegacy
impl Unpin for TransactionLegacy
impl UnwindSafe for TransactionLegacy
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