sendzk
v0.3.0
Published
<img src="https://raw.githubusercontent.com/George3d6/sendzk/refs/heads/main/logo.png" alt="Sendzk Logo" width="80">
Downloads
43
Readme
Sendzk
On-chain encrypted email via blob transactions.
Install
npm i sendzkUsage
import { sendzk } from 'sendzk';
await sendzk(
{ privateKey: '0x...', rpcUrl: 'https://...' },
{ to: '[email protected]', subject: 'Hello', body: '<p>Message</p>' }
);Test
node test_email.js \
--private-key $PRIVATE_KEY \
--rpc-url https://eth.llamarpc.com \
--email "[email protected], [email protected]" \
--subject "Hello from sendzk" \
--body "<div><p>This is a <strong>test</strong> email</p></div>" \
--cc "[email protected], [email protected]" \
--bcc "[email protected]" \
--reply-to [email protected]Options:
| Flag | Description |
|------|-------------|
| --private-key | Your wallet private key (required) |
| --rpc-url | Ethereum RPC endpoint (required) |
| --email | Recipient email address(es), comma-separated (required) |
| --subject | Email subject (required) |
| --body | Email body (required) |
| --reply-to | Reply-to address (required) |
| --cc | CC recipients, comma-separated (required, use '' for none) |
| --bcc | BCC recipients, comma-separated (required, use '' for none) |
