Expand description
Helper functions for txpool RPC methods
This module contains utilities for extracting transaction information from Substrate extrinsics, including support for impersonated transactions with fake signatures.
StructsΒ§
- Transaction
Fields π - Fields extracted from an Ethereum transaction
- Txpool
Transaction Info - Transaction info for txpool RPCs with Option fields to match Anvilβs null values
ConstantsΒ§
- MAX_
EXTRINSIC_ πDEPTH
FunctionsΒ§
- decode_
eth_ πtransaction - Decode extrinsic into ETH transaction payload and signed transaction
- extract_
sender π - Extract sender address from extrinsic as Alloy Address type.
Helper for
anvil_remove_pool_transactionsto compare sender addresses. - extract_
tx_ πfields - Extract fields from ETH transaction
- extract_
tx_ πinfo - Extract full transaction info from extrinsic
- extract_
tx_ πsummary - Extract transaction summary from extrinsic
- transaction_
matches_ πeth_ hash - Check if transaction matches ETH hash