pub struct TypedTransactionView<'a> { /* private fields */ }
Expand description

View onto transaction rlp. Assumption is this is part of block. Typed Transaction View. It handles raw bytes to search for particular field. EIP1559 tx: 2 | [chainId, nonce, maxPriorityFeePerGas, maxFeePerGas(gasPrice), gasLimit, to, value, data, access_list, senderV, senderR, senderS] Access tx: 1 | [chainId, nonce, gasPrice, gasLimit, to, value, data, access_list, senderV, senderR, senderS] Legacy tx: [nonce, gasPrice, gasLimit, to, value, data, senderV, senderR, senderS]

Implementations

Creates new view onto valid transaction rlp. Use the view! macro to create this view in order to capture debugging info.

Returns reference to transaction type.

Returns transaction hash.

Get chain Id field of the transaction.

Get the nonce field of the transaction.

Get the gas_price field of the transaction.

Get the effective_gas_price field of the transaction.

Get the actual priority gas price paid to the miner

Get the gas field of the transaction.

Get the value field of the transaction.

Get the data field of the transaction.

Get the v field of the transaction.

Get the r field of the transaction.

Get the s field of the transaction.

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.