morph-altfee

Pay Morph L2 gas fees with alternative ERC20 tokens via transaction type 0x7f.

6|1|Updated Mar 6, 2026
One-click install
npx skills add https://github.com/morph-l2/morph-skill --skill morph-altfee
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: morph-altfee
Source: https://github.com/morph-l2/morph-skill/tree/main/skills/morph-altfee
Command: npx skills add https://github.com/morph-l2/morph-skill --skill morph-altfee

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires requests, eth_account, and includes scripts (resource) components.

What problem does it solve?

This skill allows users to pay transaction gas fees on the Morph L2 network using alternative ERC20 tokens instead of ETH, simplifying gas management and improving flexibility.

Core Features & Use Cases

  • List Fee Tokens: View all supported ERC20 tokens that can be used for gas payments.
  • Check Fee Token Info: Get details like contract address, scale, and fee rate for specific tokens.
  • Estimate Gas Cost: Calculate the required amount of a fee token to cover gas for a transaction.
  • Send Transaction with Alt-Fee: Broadcast a transaction where gas is paid using a specified alternative token.
  • Use Case: A user wants to send an ERC20 token on Morph but has run out of ETH. They can use this skill to pay the gas fees with their available USDT.

Quick Start

Use the morph-altfee skill to list all supported fee tokens.

Frequently Asked Questions about morph-altfee

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I pay gas fees with ERC20 tokens instead of ETH on Morph L2?

To pay gas fees with ERC20 tokens on Morph L2, you broadcast a transaction using custom type 0x7f. This specifies an alternative fee token from the on-chain TokenRegistry to cover transaction gas costs.

Can I use USDT to pay for gas transactions on the Morph network?

Yes, you can use USDT to pay for gas transactions on the Morph network. The skill estimates the required USDT amount and broadcasts the transaction using the alternative token for gas payment.

How do I list supported fee tokens on Morph Mainnet?

You list supported fee tokens on Morph Mainnet by querying the on-chain TokenRegistry. This returns all ERC20 tokens currently approved for alternative gas payments on Chain ID 2818.

How do I estimate gas costs in an alternative ERC20 token for Morph transactions?

You estimate gas costs in an alternative ERC20 token by retrieving the token's fee rate and scale from the TokenRegistry. This calculates the exact token amount required to cover the transaction gas.

Does paying gas with alternative tokens on Morph require specific dependencies?

Paying gas with alternative tokens on Morph requires the `requests` and `eth_account` Python dependencies. These handle the custom transaction type 0x7f formatting and broadcasting to the network.