LNemail
Anonymous email accounts via Lightning Network. No KYC, no email required to sign up—just pay with Bitcoin.
Overview
LNemail provides fully functional email addresses for 1000 sats/year. Perfect for agents needing:
- - 2FA code reception
- Anonymous communication
- Bitcoin/Lightning service notifications
- API-accessible email without identity requirements
Quick Start
1. Create Email Account
Create a Lightning invoice for email account creation:
CODEBLOCK0
2. Pay with Lightning
CODEBLOCK1
Pay the BOLT11 lightning_invoice using any Bitcoin Lightning Network wallet (e.g., Alby CLI).
3. Retrieve Credentials
After payment confirms (~seconds), check status again:
CODEBLOCK2
Save these credentials! Store them securely (e.g., ~/.lnemail/credentials.json).
Using Your Email
Check Inbox
CODEBLOCK3
Read Email Content
CODEBLOCK4
Note: HTML content is stripped for security; emails are plain text only.
Send Email
Sending requires a Lightning payment (~100 sats per email):
CODEBLOCK5
Pay the invoice, then check status:
CODEBLOCK6
API Reference
| Endpoint | Method | Auth | Description |
|---|
| INLINECODE2 | POST | No | Create account (returns payment hash) |
| INLINECODE3 |
GET | No | Check account payment status |
|
/emails | GET | Bearer | List inbox messages |
|
/emails/{id} | GET | Bearer | Get message content |
|
/email/send | POST | Bearer | Create send request (returns payment hash) |
|
/email/send/status/{hash} | GET | No | Check send payment status |
Storage Recommendation
Store credentials in ~/.lnemail/credentials.json:
CODEBLOCK7
Note: The access_token is the only credential needed for ongoing operations. The payment_hash is only used during initial setup to check payment status — once you have the access_token, it can be discarded.
Pricing
| Service | Cost |
|---|
| Email account (1 year) | 1000 sats |
| Send email |
~100 sats |
| Receive email | Free |
Limitations
- - Plain text only (HTML stripped)
- Small attachment support
- 100 sats per outgoing email
- Account valid for 1 year from payment
Use Cases
- - 2FA reception: Reliable email delivery for verification codes
- Service notifications: Bitcoin/Lightning service alerts
- Anonymous signup: Services requiring email without identity link
- Agent-to-agent comms: Programmatic email between agents
References
- - LNemail: https://lnemail.net
- API Docs: https://lnemail.net (see homepage for full docs)
- Auth: Bearer token in
Authorization header
LNemail
通过闪电网络实现匿名电子邮件账户。无需KYC,无需邮箱注册——只需用比特币支付。
概述
LNemail提供功能完整的电子邮件地址,年费仅需1000聪。非常适合需要以下功能的代理:
- - 接收双重验证码
- 匿名通信
- 比特币/闪电网络服务通知
- 无需身份验证的API可访问邮箱
快速开始
1. 创建邮箱账户
创建闪电网络发票以生成邮箱账户:
bash
创建账户(返回支付哈希值)
curl -X POST https://lnemail.net/api/v1/email
响应:
{
payment_hash: abc123...,
amount: 1000,
currency: SATS
}
2. 通过闪电网络支付
bash
从支付状态接口获取发票
curl -X GET https://lnemail.net/api/v1/payment/PAYMENT_HASH
待支付时的响应:
{
payment_hash: abc123...,
status: pending,
lightning_invoice: lnbc10u1pj...
}
使用任意比特币闪电网络钱包(如Alby CLI)支付BOLT11格式的lightning_invoice。
3. 获取凭证
支付确认后(约数秒),再次检查状态:
bash
curl -X GET https://lnemail.net/api/v1/payment/PAYMENT_HASH
已支付时的响应:
{
payment_hash: abc123...,
status: paid,
email: abc123@lnemail.net,
access_token: eyJhbG...
}
请保存这些凭证! 将其安全存储(例如~/.lnemail/credentials.json)。
使用您的邮箱
查看收件箱
bash
curl -X GET https://lnemail.net/api/v1/emails \
-H Authorization: Bearer YOURACCESSTOKEN
响应:
[
{
id: msg_123,
from: sender@example.com,
subject: 您的双重验证码,
received_at: 2024-01-15T10:30:00Z,
has_attachments: false
}
]
阅读邮件内容
bash
curl -X GET https://lnemail.net/api/v1/emails/EMAIL_ID \
-H Authorization: Bearer YOURACCESSTOKEN
响应:
{
id: msg_123,
from: sender@example.com,
to: abc123@lnemail.net,
subject: 您的双重验证码,
body: 您的验证码是:123456,
received_at: 2024-01-15T10:30:00Z
}
注意: 出于安全考虑,HTML内容已被移除;邮件仅支持纯文本格式。
发送邮件
发送邮件需要闪电网络支付(每封约100聪):
bash
创建发送请求
curl -X POST https://lnemail.net/api/v1/email/send \
-H Authorization: Bearer YOUR
ACCESSTOKEN \
-d {
recipient: example@example.com,
subject: 你好,
body: 消息内容
}
响应:
{
payment_hash: def456...,
amount: 100,
currency: SATS
}
支付发票后,检查状态:
bash
curl -X GET https://lnemail.net/api/v1/email/send/status/PAYMENT_HASH
已支付时的响应:
{
payment_hash: def456...,
status: paid,
messageid: msgsent_789
}
API参考
| 端点 | 方法 | 认证 | 描述 |
|---|
| /email | POST | 否 | 创建账户(返回支付哈希值) |
| /payment/{hash} |
GET | 否 | 检查账户支付状态 |
| /emails | GET | Bearer | 列出收件箱消息 |
| /emails/{id} | GET | Bearer | 获取消息内容 |
| /email/send | POST | Bearer | 创建发送请求(返回支付哈希值) |
| /email/send/status/{hash} | GET | 否 | 检查发送支付状态 |
存储建议
将凭证存储在~/.lnemail/credentials.json中:
json
{
email: abc123@lnemail.net,
access_token: eyJhbG...
}
注意: accesstoken是后续操作所需的唯一凭证。paymenthash仅在初始设置时用于检查支付状态——一旦获得access_token,即可丢弃。
定价
约100聪 |
| 接收邮件 | 免费 |
限制
- - 仅支持纯文本(HTML已移除)
- 支持小附件
- 每封外发邮件100聪
- 账户自支付之日起有效期为1年
使用场景
- - 接收双重验证码: 可靠的邮件投递验证码
- 服务通知: 比特币/闪电网络服务提醒
- 匿名注册: 需要邮箱但无需身份关联的服务
- 代理间通信: 代理之间的程序化邮件通信
参考链接
- - LNemail: https://lnemail.net
- API文档: https://lnemail.net(查看首页获取完整文档)
- 认证方式: Authorization头中的Bearer令牌