360 Secure SkillHub
360 安全技能中心

Near Email Reporter

这是NEAR链邮件报告工具,核心功能含配置SMTP邮箱、发送指定NEAR账户交易报告、设置余额阈值告警、按Cron表达式调度定期报告。适用于监控NEAR账户交易、掌握余额变动或定期获取交易汇总的用户。通过命令行输入参数操作,输出为指定邮箱的报告/告警邮件,配置安全存储,需SMTP账户及Node.js环境。

shaiss
shaiss
热度 69.79
最近更新 2026-05-11 15:54:37
分类:自动化依赖:代码执行 / 读写文件 / 第三方 API应用场景:自动化脚本 / 报告撰写 / 邮件起草 / 财务

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add near-email-reporter
Metadata
name
near-email-reporter
description
Send NEAR reports and alerts via email with SMTP configuration, scheduling, and automatic reporting.

NEAR Email Reporter Skill

Send NEAR transaction reports via email with scheduling.

Description

This skill allows you to configure email settings, send NEAR transaction reports, set up alerts, and schedule periodic email reports. Uses standard SMTP with secure configuration storage.

Features

  • Configure SMTP email settings
  • Send transaction reports via email
  • Set up alerts for specific events
  • Schedule periodic reports
  • Secure configuration storage

Commands

near-email setup [options]

Configure email settings.

Options:

  • --host <host> - SMTP server host
  • --port <port> - SMTP server port (default: 587)
  • --user <user> - SMTP username
  • --pass <pass> - SMTP password
  • --from <email> - From email address
  • --secure - Use SSL/TLS (default: false)

Example:

near-email setup --host smtp.gmail.com --port 587 --user myemail@gmail.com --pass mypassword --from myemail@gmail.com

near-email report <account_id> [recipient]

Send a transaction report for an account.

Parameters:

  • account_id - NEAR account to report on
  • recipient - Email recipient (optional, uses default)

near-email alert <account_id> <threshold> [recipient]

Set up balance alert for an account.

Parameters:

  • account_id - NEAR account to monitor
  • threshold - Balance threshold (in NEAR)
  • recipient - Email recipient (optional)

near-email schedule <account_id> <cron_expr> [recipient]

Schedule periodic email reports.

Parameters:

  • account_id - NEAR account to report on
  • cron_expr - Cron expression (e.g., "0 9 * * *" for daily at 9am)
  • recipient - Email recipient (optional)

Configuration

Email settings are stored in ~/.near-email/config.json with secure permissions.

Requirements

  • SMTP email account (Gmail, SendGrid, etc.)
  • Node.js for running the scripts

Notes

References