pub enum Transaction {
    Unverified(UnverifiedTransaction),
    Retracted(UnverifiedTransaction),
    Local(PendingTransaction),
}
Expand description

Transaction to verify.

Variants

Unverified(UnverifiedTransaction)

Fresh, never verified transaction.

We need to do full verification of such transactions

Retracted(UnverifiedTransaction)

Transaction from retracted block.

We could skip some parts of verification of such transactions

Local(PendingTransaction)

Locally signed or retracted transaction.

We can skip consistency verifications and just verify readiness.

Implementations

Return transaction hash

Return transaction gas price for non 1559 transactions or maxFeePerGas for 1559 transactions.

Return actual gas price of the transaction depending on the current block base fee

Return effective fee - part of the transaction fee that goes to the miner

Return maximum transaction fee that may go to the miner: transaction gas price for non 1559 transactions or maxPriorityFeePerGas for 1559 transactions.

Check if transaction has zero gas price

Trait Implementations

Verification error.

Verified transaction.

Verifies a UnverifiedTransaction and produces VerifiedTransaction instance.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.