Inbox to On-Chain | “Rebalance, bridge, and send crypto directly through Gmail.”
Problem Statement
-Mainstream adoption of on-chain payroll and finance tools is held back by complex workflows and disconnected communication systems. Today’s crypto payment solutions force users to:
-Juggle between multiple dashboards, wallets, and dApps to send or approve simple transactions.
-Depend on manual coordination through chats or emails, without any built-in payment execution or tracking.
Manage payroll schedules and approvals separately from the actual crypto transfers, leading to delays and confusion.
Operate outside familiar tools like Gmail— forcing them to learn entirely new interfaces and habits.
Lack a unified audit trail, making it difficult for teams to verify who sent what, when, and on which chain.
Even teams comfortable with crypto struggle to manage on-chain payrolls and transactions efficiently, blocking wider DeFi adoption.
Solution
MailPay bridges the gap between email communication and DeFi. It transforms Gmail into a DeFi command center — allowing users to trigger, track, and verify blockchain transactions directly from their inbox as well as batch payments in a single mail.
WalletConnect in Gmail: Integrate a WalletConnect button inside Gmail, enabling users to securely connect their wallets or sign transactions without leaving their inbox.
Email Payment Trigger: Create the email body with recipient address, chain, amount, and token ( USDC , ETH , PYUSD ) then hit send to initiate the transaction.
Hot Wallet Rebalancing & Yield: MailPay add-on rebalances funds to a hot wallet for payroll, bridges across chains via Nexus SDK, and earns yield on idle treasury funds.
Automatic Parsing: The system automatically parses the email body to extract payment details such as amounts, recipient addresses, and network information.
Transaction Confirmation: Once executed, MailPay Scout (powered by Blockscout Autoscout) sends non-reply confirmation emails with transaction hashes and explorer links.
Architecture & Stack:
"MailPay" combines a Gmail add-on, a Next.js frontend, and an Express backend. The backend monitors Gmail via Google OAuth2 and the Gmail API, parses emails for payment instructions, and executes transactions and with Nexus SDK for cross-chain bridging, fund rebalancing, and yield supply. The frontend uses React and embeds Avail Nexus widgets (Transfer, Bridge & Execute, Unified Balance) to handle multi-chain operations and fund management.
Wallet Integration: We integrated WalletConnect inside Gmail so users can connect wallets or sign transactions without leaving their inbox. MetaMask support is also included for signing on desktop browsers. This ensures secure, frictionless wallet interaction directly from email.
Email Parsing & Automation: The backend polls Gmail every ~10 seconds, fetching new email metadata and parsing the body using regex and structured parsing. Emails are expected to contain recipient addresses, chain info, amount, and token. After parsing, transactions are executed automatically via the Nexus SDK, including bridging or rebalancing treasury funds when needed.
Transaction Confirmation: Once transactions are executed, MailPay Scout, powered by Blockscout Autoscout, sends a non-reply confirmation email with the transaction hash and explorer link for transparency and auditing.
Hacky / Notable Bits:
The email-to-transaction pipeline is effectively a hacky bridge between Gmail and EVM testnets, letting users initiate complex DeFi operations just by sending an email.
We leveraged ngrok to expose the local backend for Gmail OAuth callbacks during development, allowing full end-to-end testing without deploying.
Rebalancing & Yield Supply: Before executing payments, treasury funds are manually rebalanced to a hot wallet and supplied to yield-generating protocols like Aave, ensuring controlled fund management and optimized usage.
Partner Tech & Benefits:
Avail Nexus SDK: Handles cross-chain bridging and widget integration, saving us months of custom protocol work.
PayPal: Integrated PayPal’s PYUSD stablecoin to enable seamless payroll transactions, allowing funds to be sent and received directly on-chain using a widely trusted stablecoin.
Blockscout's Autoscout: Provides automated verification emails and transaction transparency.
Google/Gmail API: Enables secure email monitoring and parsing.
Next.js / React: Makes the web dashboard seamless and integrates the widgets efficiently.
Summary: "MailPay" is built by combining email as a user-friendly interface with DeFi under the hood. It’s essentially a Gmail-to-blockchain pipeline that handles wallets, bridging, payroll execution, and DeFi operations with minimal friction for the user.

