Struct primitives::transaction::eth_transaction::Eip155Transaction
source · pub struct Eip155Transaction {
pub nonce: U256,
pub gas_price: U256,
pub gas: U256,
pub action: Action,
pub value: U256,
pub chain_id: Option<u32>,
pub data: Bytes,
}
Fields§
§nonce: U256
Nonce.
gas_price: U256
Gas price.
gas: U256
Gas paid up front for transaction execution.
action: Action
Action, can be either call or contract create.
value: U256
Transferred value.
chain_id: Option<u32>
The chain id of the transaction
data: Bytes
Transaction data.
Implementations§
source§impl Eip155Transaction
impl Eip155Transaction
sourcepub fn fake_sign_phantom(self, from: AddressWithSpace) -> SignedTransaction
pub fn fake_sign_phantom(self, from: AddressWithSpace) -> SignedTransaction
Fake sign phantom transactions.
sourcepub fn fake_sign_rpc(self, from: AddressWithSpace) -> SignedTransaction
pub fn fake_sign_rpc(self, from: AddressWithSpace) -> SignedTransaction
Fake sign call requests in eth_call
.
Trait Implementations§
source§impl Clone for Eip155Transaction
impl Clone for Eip155Transaction
source§fn clone(&self) -> Eip155Transaction
fn clone(&self) -> Eip155Transaction
Returns a copy 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 Eip155Transaction
impl Debug for Eip155Transaction
source§impl Default for Eip155Transaction
impl Default for Eip155Transaction
source§fn default() -> Eip155Transaction
fn default() -> Eip155Transaction
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for Eip155Transaction
impl<'de> Deserialize<'de> for Eip155Transaction
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 Encodable for Eip155Transaction
impl Encodable for Eip155Transaction
source§impl From<Eip155Transaction> for Transaction
impl From<Eip155Transaction> for Transaction
source§fn from(tx: Eip155Transaction) -> Self
fn from(tx: Eip155Transaction) -> Self
Converts to this type from the input type.
source§impl PartialEq for Eip155Transaction
impl PartialEq for Eip155Transaction
source§fn eq(&self, other: &Eip155Transaction) -> bool
fn eq(&self, other: &Eip155Transaction) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for Eip155Transaction
impl Serialize for Eip155Transaction
impl Eq for Eip155Transaction
impl StructuralPartialEq for Eip155Transaction
Auto Trait Implementations§
impl RefUnwindSafe for Eip155Transaction
impl Send for Eip155Transaction
impl Sync for Eip155Transaction
impl Unpin for Eip155Transaction
impl UnwindSafe for Eip155Transaction
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