Logo SYSCALL EMAIL v2.1.0
< BACK TO HUB
LIVE ON MegaETH: Ensure your wallet is connected to the correct chain
i SERVICE OVERVIEW

TRUSTLESS SMTP RELAY

The Syscall Email service allows smart contracts to trigger emails purely via blockchain transactions. It uses a Commit-Reveal scheme to ensure the content is cryptographically linked to the payment before dispatch.

LIVE ORACLE PRICE
LOADING...
Gas Optimized for L2
_ LIVE TESTER
EXECUTION LOGS
Syscall Email Module loaded...
Waiting for user input...
# FRONTEND INTEGRATION (BROWSER)

1. Download syscall-email-sdk.js and place it in your project.
2. Import Ethers.js v6 and the SDK in your HTML head.
3. Initialize and use the global `Syscall` class.

<!-- 1. Include Libraries (HTML) --> <script src="https://cdnjs.../ethers.umd.min.js"></script> <script src="./syscall-email-sdk.js"></script> <script> async function sendEmail() { // 2. Initialize with window.ethereum const syscall = new Syscall(window.ethereum); // 3. Trigger Action (Prompts MetaMask) const receipt = await syscall.sendEmail( "user@example.com", // Destination "Welcome to DAO", // Subject "Onboarding Bot", // Sender Name "Your wallet is verified." // Content ); console.log("Proof TX:", receipt.txHash); } </script>
# BACKEND INTEGRATION (NODE.JS)

1. Install dependencies: npm install ethers dotenv
2. Download syscall-email-sdk.js to your project root.
3. Import the local file and initialize with your wallet's Private Key.

// 1. Imports & Setup require('dotenv').config(); const Syscall = require('./syscall-email-sdk'); // Local Import // 2. Initialization (Server-Side) const syscall = new Syscall(process.env.PRIVATE_KEY); // 3. Usage Example async function notifyAdmin() { const tx = await syscall.sendEmail( "admin@platform.com", "Server Alert", "Watchdog", "Error detected on Pod-42." ); console.log("Alert Sent:", tx.txHash); }
@ COMMUNITY & DOCS