Evm Transaction Builder
Builds Ethereum transaction protobufs for use with WalletCore's TransactionCompiler.
This class is responsible for:
Converting SDK transaction models to WalletCore protobuf format
Building SigningInput for native and ERC-20 transfers
Computing preImageHash for external signing (MPC)
Compiling signed transactions from external signatures
Phase 5.1: preImageHash generation Phase 5.2: signature compilation
Functions
Build a preImageHash for a transaction.
Build a preImageHash for a transaction, returning both the PreSigningOutput and the original SigningInput bytes.
Extract the data hash from a preImageHash for signing.
Extract data from PreSigningOutput.
Returns RLP-encoded unsigned transaction bytes for the given tx/fee. Used by OP Stack L1 fee estimation (GasPriceOracle.getL1Fee(bytes)). Supports both legacy and EIP-1559 (type-2) transactions.