A DApp demonstrating gasless, scheduled transactions on the Monad Testnet using MetaMask Smart Accounts. Sign future payments off-chain and have them executed by anyone.
In today's DeFi landscape, automating payments remains a challenge. Scheduling transactions requires either complex, gas-intensive smart contracts or reliance on centralized services.
Monad Delegated Transfers leverages the power of MetaMask Smart Accounts and the Delegation Framework to solve this problem. Our application allows users to create "delegated orders"—signed, off-chain messages that grant permission for a specific transfer to occur in the future. These orders can be executed by anyone (a "relayer"), removing the need for the user to be online at the time of execution.
- Smart Account Interaction: Simulates the creation of a Smart Account and allows users to fund it.
- Gasless Off-Chain Signing: Users define a recipient, amount, and delay, then sign an EIP-712 message. This signature costs no gas.
- Relayer Execution Model: Once the time delay has passed, anyone can submit the signed message to the DelegationManager contract to execute the transfer.
To deliver a functional proof-of-concept, we made several strategic simplifications:
1. Smart Account Simulation: We use the deployed EntryPoint contract address as the user's "Smart Account". This provides a stable on-chain address that can receive funds, allowing us to build and test the complete UX flow.
2. Signature Verification & Security: Our execute call currently reverts with an error. This is expected behavior and demonstrates the security of the Delegation Framework. The contract correctly identifies that our simplified signature hash does not match the complex structure it expects (which would include enforcers and caveats) and rightfully rejects the transaction. This proves the system is secure against malformed orders.
- Developed a full proof-of-concept DApp from scratch. - Deployed and tested MetaMask Delegation Framework contracts on the Monad Testnet. - Implemented a complete user flow: wallet connection, Smart Account funding, and off-chain EIP-712 signing for delegated orders. - Built a modern, responsive user interface with React and Vite. - Researched and demonstrated the security model of the DelegationManager contract by showing how it correctly reverts invalid signature structures.
Currently a proof-of-concept developed for the hackathon. Not actively fundraising at this stage.