Web3 프로젝트용 이메일 API
지갑 이메일 주소를 통해 사용자에게 직접 도달하세요. 스마트 컨트랙트에서 알림을 자동화하세요. 메일박스 프로토콜로 커뮤니케이션을 비공개로 유지하세요.
// Send email from your smart contract
import { MailerClient } from '@sudobility/contracts';
import { ethers } from 'ethers';
const mailer = new MailerClient(mailerAddress, signer);
// Send notification to user
await mailer.sendPriority(
userWalletAddress,
'Reward Claimed!',
`You received ${rewardAmount} tokens!`
);
왜 Web3 프로젝트들이 MailBox를 선택하는가
전통적인 커뮤니케이션 방법은 Web3에서 부족합니다. MailBox는 사용자와의 직접적, 비공개적, 자동화된 상호작용을 위한 결여된 인프라를 제공합니다.
직접적인 사용자 참여
마케팅 캠페인, 제품 공지, 커뮤니티 업데이트를 위해 지갑 이메일 주소를 통해 사용자와 소통하세요. 사용자가 실제로 메시지를 확인하는 곳에 도달하세요.
// Marketing campaign to wallet holders
const campaign = await mailbox.createCampaign({
name: 'Token Launch Announcement',
template: 'product-launch',
targetAudience: 'token-holders',
});
const recipients = await getTokenHolders(contractAddress, {
minBalance: '1000',
});
await campaign.send({
to: recipients,
subject: '🚀 New Token Launch!',
data: {
tokenName: 'AWESOME',
launchDate: '2024-09-01',
bonusPercent: 15,
},
});
// Expected: 10,000+ verified recipients
// Open rate: 85% (vs 20% traditional email)
스마트 계약 통합
메일박스 프로토콜을 사용해 스마트 컨트랙트에서 직접 이메일 알림을 자동으로 트리거하세요. 거래 확인, 스테이크 보상 또는 거버넌스 알림을 원활하게 전송하세요.
// Solidity smart contract integration
pragma solidity ^0.8.24;
import "@sudobility/contracts/interfaces/IMailer.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
contract RewardDistributor {
IMailer public immutable mailer;
IERC20 public immutable usdc;
IERC20 public immutable rewardToken;
constructor(
address _mailer,
address _usdc,
address _rewardToken
) {
mailer = IMailer(_mailer);
usdc = IERC20(_usdc);
rewardToken = IERC20(_rewardToken);
}
function distributeReward(
address recipient,
uint256 amount
) external {
// Transfer reward tokens
rewardToken.transfer(recipient, amount);
// Approve USDC for email fee
usdc.approve(address(mailer), 100000);
// Send notification email
mailer.sendPriorityPrepared(
recipient,
"reward-claimed-v1"
);
emit RewardClaimed(recipient, amount);
}
}비공개 커뮤니케이션
민감한 커뮤니케이션을 오프체인에서 비공개로 유지하세요. 공개 블록체인 메시지와 달리 이메일은 의도한 수신자에게만 표시되므로 기밀 비즈니스 커뮤니케이션에 적합합니다.
// Private business communications
const privateChannel = mailbox.createPrivateChannel({
participants: [
'0x1234...5678', // CEO wallet
'0xabcd...efgh', // CTO wallet
'0x9876...5432', // Legal team
],
encryption: 'end-to-end',
retention: '30-days',
});
await privateChannel.sendMessage({
subject: 'Q4 Strategic Planning',
body: `Confidential: Partnership proposal
with major DeFi protocol. Terms:
- $10M strategic investment
- Technical integration timeline
- Regulatory compliance review`,
attachments: ['term-sheet.pdf', 'technical-specs.pdf'],
priority: 'high',
});
모든 웹3.0 프로젝트에 적합
DeFi 프로토콜에서 NFT 마켓플레이스에 이르기까지, MailBox는 Web3 생태계에 걸친 프로젝트들이 사용자를 더 효과적으로 참여시키는 데 도움을 줍니다.
디파이 프로토콜
NFT 마켓플레이스
DAO
게임 프로젝트
몇 분 안에 통합 시작
간단한 3단계 통합 프로세스를 통해 프로젝트가 이메일을 통해 사용자와 소통할 수 있습니다.
SDK 설치
간단한 npm 설치 명령으로 프로젝트에 MailBox SDK를 추가하세요.
API 구성
프로젝트 자격 증명을 설정하고 사용하려는 이메일 템플릿을 구성하세요.
이메일 보내기
몇 줄의 코드만으로 스마트 컨트랙트 또는 백엔드에서 이메일 전송을 시작할 수 있습니다.
기술적 특징
광속 같은 속도
초미세 이메일 전달
보안적인
끝대끝 암호화
분석
상세한 배송 지표
멀티체인
모든 블록체인에서 작동함
템플릿
부자 HTML 이메일 템플릿
타겟팅
지갑 활동으로 분할
왜 MailBox를 다른 옵션보다 선택할까요?
| 기능 | MailBox | 체인상 메시지 | 전통적인 이메일 | 디스코드/텔레그램 |
|---|---|---|---|---|
| 개인정보 | ✕ | ~ | ||
| 스마트 계약 통합 | ✕ | ✕ | ||
| 가스 비용 | 무료 | 높다 | 무료 | 무료 |
| 풍부한 콘텐츠 | ✕ | ~ | ||
| 지갑으로 바로 이동 | ✕ | ✕ |
각 이점을 자세히 살펴보세요
Web3 이메일이 프로젝트와 사용자 간의 커뮤니케이션을 어떻게 변화시키며 비즈니스 결과를 어떻게 촉진하는지 더 깊이 있게 탐구하세요