[][src]Struct wagyu_ethereum::transaction::EthereumTransaction

pub struct EthereumTransaction<N: EthereumNetwork> { /* fields omitted */ }

Represents an Ethereum transaction

Trait Implementations

impl<N: Clone + EthereumNetwork> Clone for EthereumTransaction<N>[src]

impl<N: Debug + EthereumNetwork> Debug for EthereumTransaction<N>[src]

impl<N: EthereumNetwork> Display for EthereumTransaction<N>[src]

impl<N: Eq + EthereumNetwork> Eq for EthereumTransaction<N>[src]

impl<N: EthereumNetwork> FromStr for EthereumTransaction<N>[src]

type Err = TransactionError

The associated error which can be returned from parsing.

impl<N: Hash + EthereumNetwork> Hash for EthereumTransaction<N>[src]

impl<N: Ord + EthereumNetwork> Ord for EthereumTransaction<N>[src]

impl<N: PartialEq + EthereumNetwork> PartialEq<EthereumTransaction<N>> for EthereumTransaction<N>[src]

impl<N: PartialOrd + EthereumNetwork> PartialOrd<EthereumTransaction<N>> for EthereumTransaction<N>[src]

impl<N: EthereumNetwork> StructuralEq for EthereumTransaction<N>[src]

impl<N: EthereumNetwork> StructuralPartialEq for EthereumTransaction<N>[src]

impl<N: EthereumNetwork> Transaction for EthereumTransaction<N>[src]

type Address = EthereumAddress

type Format = EthereumFormat

type PrivateKey = EthereumPrivateKey

type PublicKey = EthereumPublicKey

type TransactionId = EthereumTransactionId

type TransactionParameters = EthereumTransactionParameters

fn new(
    parameters: &Self::TransactionParameters
) -> Result<Self, TransactionError>
[src]

Returns an unsigned transaction given the transaction parameters.

fn sign(&self, private_key: &Self::PrivateKey) -> Result<Self, TransactionError>[src]

Returns a signed transaction given the private key of the sender. https://github.com/ethereum/EIPs/blob/master/EIPS/eip-155.md

fn from_transaction_bytes(
    transaction: &Vec<u8>
) -> Result<Self, TransactionError>
[src]

Returns a transaction given the transaction bytes. https://github.com/ethereum/EIPs/blob/master/EIPS/eip-155.md

fn to_transaction_bytes(&self) -> Result<Vec<u8>, TransactionError>[src]

Returns the transaction in bytes. https://github.com/ethereum/EIPs/blob/master/EIPS/eip-155.md

fn to_transaction_id(&self) -> Result<Self::TransactionId, TransactionError>[src]

Returns the hash of the signed transaction, if the signature is present. Otherwise, returns the hash of the raw transaction.

Auto Trait Implementations

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

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,