Module reth_primitives::transaction
source · Expand description
Transaction types.
Structs§
- Re-export from
alloy_eips
. AccessList as defined in EIP-2930 - Re-export from
alloy_eips
. A list of addresses and storage keys that the transaction plans to access. Accesses outside the list are possible, but become more expensive. - Re-export from
alloy_eips
.AccessListResult
for handling errors frometh_createAccessList
- Blob
Transaction c-kzg
A response toGetPooledTransactions
that includes blob data, their commitments, and their corresponding proofs. - This represents a set of blobs, and its corresponding commitments and proofs.
- A signed pooled transaction with recovered signer.
- r, s: Values corresponding to the signature of the transaction and used to determine the sender of the transaction; formally Tr and Ts. This is expanded in Appendix F of yellow paper.
- Additional fields in the context of a block that contains this transaction.
- Signed transaction.
- Signed transaction with recovered signer.
- Signed transaction without its Hash. Used type for inserting into the DB.
- TxDeposit
optimism
Deposit transactions, also known as deposits are initiated on L1, and executed on L2. - A transaction with a priority fee (EIP-1559).
- Transaction with an
AccessList
(EIP-2930). - A transaction with a priority fee (EIP-7702).
- Legacy transaction.
- Generic wrapper with encoded Bytes, such as transaction data.
Enums§
- An error that can occur when validating a BlobTransactionSidecar::validate.
- Represents error variants that can happen when trying to validate a Transaction
- A response to
GetPooledTransactions
. This can include either a blob transaction, or a non-4844 signed transaction. - A raw transaction.
- Represents error variants that can happen when trying to convert a transaction to
PooledTransactionsElement
- Represents various different transaction formats used in reth.
- Represents error variants than can happen when trying to convert a
TransactionSignedEcRecovered
transaction. - Transaction Type
Constants§
- DEPOSI
T_ TX_ TYPE_ ID optimism
Identifier forTxDeposit
transaction. - Identifier for
TxEip1559
transaction. - Identifier for
TxEip2930
transaction. - Identifier for
TxEip4844
transaction. - Identifier for
TxEip7702
transaction. - Identifier for legacy transaction, however
TxLegacy
this is technically not typed.
Traits§
- Implements behaviour to fill a [
TxEnv
] from another transaction. - Ensures the transaction can be sent over the network
Functions§
- Outputs (
odd_y_parity
,chain_id
) from thev
value. This doesn’t check validity of thev
value for optimism. - Generates a
BlobTransactionSidecar
structure containing blobs, commitments, and proofs.
Type Aliases§
- Either a transaction hash or number.