What problem does it solve?
Enable transactions on Morph L2 without requiring native ETH for gas by allowing gas payment with alternative ERC20 tokens, reducing friction for users and dapps that prefer stablecoins or other tokens.
Core Features & Use Cases
- List and inspect fee tokens: Query the on-chain TokenRegistry to enumerate supported fee tokens and view metadata such as contract address, scale, feeRate, decimals, and active status.
- Estimate token-denominated fees: Calculate the required feeLimit from gasFeeCap, gasLimit, L1DataFee, tokenScale and feeRate and include a safety margin for reliable payments.
- Sign and broadcast alt-fee transactions locally: Construct and send Morph tx type 0x7f transactions with local private-key signing for simple transfers or contract calls while ensuring user confirmation before signing.
- Use Case: Obtain a dex swap calldata from the morph-dex skill, estimate the alt-fee cost for the call, then sign and broadcast the swap transaction paying gas in USDT.
Quick Start
Use the morph-altfee skill to list supported fee tokens, estimate the feeLimit for a planned transaction, and sign and broadcast the transaction locally with your private key.