Megaeth Developer
by @0xbreadguy
End-to-end MegaETH development playbook (Feb 2026). Covers wallet operations, token swaps (Kyber Network), eth_sendRawTransactionSync (EIP-7966) for instant receipts, JSON-RPC batching, real-time mini-block subscriptions, storage-aware contract patterns (Solady RedBlackTreeLib), MegaEVM gas model, WebSocket keepalive, bridging from Ethereum, and debugging with mega-evme. Use when building on MegaETH, managing wallets, sending transactions, or deploying contracts.
clawhub install megaeth-ai-developer-skillsπ About This Skill
name: megaeth-developer description: End-to-end MegaETH development playbook (Feb 2026). Covers wallet operations, token swaps (Kyber Network), eth_sendRawTransactionSync (EIP-7966) for instant receipts, JSON-RPC batching, real-time mini-block subscriptions, storage-aware contract patterns (Solady RedBlackTreeLib), MegaEVM gas model, WebSocket keepalive, bridging from Ethereum, and debugging with mega-evme. Use when building on MegaETH, managing wallets, sending transactions, or deploying contracts.
MegaETH Development Skill
What this Skill is for
Use this Skill when the user asks for:Chain Configuration
| Network | Chain ID | RPC | Explorer |
|---------|----------|-----|----------|
| Mainnet | 4326 | https://mainnet.megaeth.com/rpc | https://mega.etherscan.io |
| Testnet | 6343 | https://carrot.megaeth.com/rpc | https://megaeth-testnet-v2.blockscout.com |
Default stack decisions (opinionated)
1. Transaction submission: eth_sendRawTransactionSync first
eth_sendRawTransactionSync (EIP-7966) β returns receipt in <10mseth_getTransactionReceipt2. RPC: Multicall for eth_call batching (v2.0.14+)
aggregate3) for batching multiple eth_call requestseth_call is 2-10x faster; Multicall amortizes per-RPC overheadeth_getLogs) with fast ones in same requestNote: Earlier guidance recommended JSON-RPC batching over Multicall for caching benefits. With v2.0.14's performance improvements, Multicall is now preferred.
3. WebSocket: keepalive required
eth_chainId every 30 secondsminiBlocks subscription for real-time data4. Storage: slot reuse patterns
5. Gas: skip estimation when possible
eth_maxPriorityFeePerGas (returns 0)eth_estimateGas (MegaEVM costs differ from standard EVM)6. Debugging: mega-evme CLI
Operating procedure
1. Classify the task layer
2. Pick the right patterns
eth_sendRawTransactionSync β done--skip-simulation