pub struct EthereumTransaction<N: EthereumNetwork> {
pub sender: Option<EthereumAddress>,
pub params: EthereumTransactionParameters,
pub signature: Option<EthereumTransactionSignature>,
/* private fields */
}Fields§
§sender: Option<EthereumAddress>The address of the sender
params: EthereumTransactionParametersThe transaction parameters (gas, gas_price, nonce, data)
signature: Option<EthereumTransactionSignature>The transaction signature
Implementations§
Source§impl<N: EthereumNetwork> EthereumTransaction<N>
impl<N: EthereumNetwork> EthereumTransaction<N>
pub fn restore_sender(&mut self) -> Result<(), TransactionError>
Trait Implementations§
Source§impl<N: Clone + EthereumNetwork> Clone for EthereumTransaction<N>
impl<N: Clone + EthereumNetwork> Clone for EthereumTransaction<N>
Source§fn clone(&self) -> EthereumTransaction<N>
fn clone(&self) -> EthereumTransaction<N>
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<N: Debug + EthereumNetwork> Debug for EthereumTransaction<N>
impl<N: Debug + EthereumNetwork> Debug for EthereumTransaction<N>
Source§impl<N: EthereumNetwork> Display for EthereumTransaction<N>
impl<N: EthereumNetwork> Display for EthereumTransaction<N>
Source§impl<N: EthereumNetwork> FromStr for EthereumTransaction<N>
impl<N: EthereumNetwork> FromStr for EthereumTransaction<N>
Source§impl<N: Hash + EthereumNetwork> Hash for EthereumTransaction<N>
impl<N: Hash + EthereumNetwork> Hash for EthereumTransaction<N>
Source§impl<N: PartialEq + EthereumNetwork> PartialEq for EthereumTransaction<N>
impl<N: PartialEq + EthereumNetwork> PartialEq for EthereumTransaction<N>
Source§impl<N: EthereumNetwork> Transaction for EthereumTransaction<N>
impl<N: EthereumNetwork> Transaction for EthereumTransaction<N>
type Address = EthereumAddress
type Format = EthereumFormat
type PublicKey = EthereumPublicKey
type TransactionId = EthereumTransactionId
type TransactionParameters = EthereumTransactionParameters
Source§fn new(params: &Self::TransactionParameters) -> Result<Self, TransactionError>
fn new(params: &Self::TransactionParameters) -> Result<Self, TransactionError>
Returns an unsigned transaction given the transaction parameters.
Source§fn sign(&mut self, rs: Vec<u8>, recid: u8) -> Result<Vec<u8>, TransactionError>
fn sign(&mut self, rs: Vec<u8>, recid: u8) -> Result<Vec<u8>, TransactionError>
Returns a signed transaction bytes given the (signature,recovery_id)
Source§fn from_bytes(tx: &[u8]) -> Result<Self, TransactionError>
fn from_bytes(tx: &[u8]) -> Result<Self, TransactionError>
Returns a transaction given the transaction bytes.
Source§fn to_transaction_id(&self) -> Result<Self::TransactionId, TransactionError>
fn to_transaction_id(&self) -> Result<Self::TransactionId, TransactionError>
Returns the transaction id.
impl<N: Eq + EthereumNetwork> Eq for EthereumTransaction<N>
impl<N: EthereumNetwork> StructuralPartialEq for EthereumTransaction<N>
Auto Trait Implementations§
impl<N> Freeze for EthereumTransaction<N>
impl<N> RefUnwindSafe for EthereumTransaction<N>where
N: RefUnwindSafe,
impl<N> Send for EthereumTransaction<N>
impl<N> Sync for EthereumTransaction<N>
impl<N> Unpin for EthereumTransaction<N>where
N: Unpin,
impl<N> UnwindSafe for EthereumTransaction<N>where
N: UnwindSafe,
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