pub struct SignedTransaction { /* private fields */ }Expand description
A signed Ethereum transaction ready for broadcast.
Implementations§
Source§impl SignedTransaction
impl SignedTransaction
Sourcepub fn raw_tx(&self) -> &[u8] ⓘ
pub fn raw_tx(&self) -> &[u8] ⓘ
Return the raw signed transaction bytes.
This is what you pass to eth_sendRawTransaction.
Sourcepub fn tx_hash(&self) -> [u8; 32]
pub fn tx_hash(&self) -> [u8; 32]
Compute the transaction hash (keccak256 of the raw signed tx).
Sourcepub fn raw_tx_hex(&self) -> String
pub fn raw_tx_hex(&self) -> String
Return the raw transaction as a 0x-prefixed hex string.
Trait Implementations§
Source§impl Clone for SignedTransaction
impl Clone for SignedTransaction
Source§fn clone(&self) -> SignedTransaction
fn clone(&self) -> SignedTransaction
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 moreAuto Trait Implementations§
impl Freeze for SignedTransaction
impl RefUnwindSafe for SignedTransaction
impl Send for SignedTransaction
impl Sync for SignedTransaction
impl Unpin for SignedTransaction
impl UnsafeUnpin for SignedTransaction
impl UnwindSafe for SignedTransaction
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