Contract Details
Tech Stack
TypeScript ethers.js v6 node-fetch
Chains
Ethereum Goerli
Description
TypeScript template for submitting transactions privately via Flashbots Protect and MEV-Share. Includes relay client, bundle building, status polling, and fallback strategies for failed submissions.
Features
- ✓ Flashbots Protect relay client
- ✓ MEV-Share private transaction submission
- ✓ Bundle building and signing utilities
- ✓ Submission status polling with retry logic
- ✓ Fallback to public mempool on relay failure
- ✓ Configurable MEV hint preferences
- ✓ Transaction simulation before submission
- ✓ Comprehensive test suite with mocked relay
// SPDX-License-Identifier: MIT pragma solidity ^0.8.24; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; /// @title Private Tx Relay /// @notice Template for submitting txs via Flashbots Protect + MEV-Share. contract PrivateTxRelay { address public immutable owner; uint256 public constant VERSION = 1; event Initialized(address indexed deployer); constructor() { owner = msg.sender; emit Initialized(msg.sender); } // ... full implementation in purchased package }