Skip to main content

Module txpool_helpers

Module txpool_helpers 

Source
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Β§

TransactionFields πŸ”’
Fields extracted from an Ethereum transaction
TxpoolTransactionInfo
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_transactions to 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