Skip to content

Latest commit

 

History

History
39 lines (32 loc) · 1.02 KB

README.md

File metadata and controls

39 lines (32 loc) · 1.02 KB

blockchain-monitor

功能

监视指定 BSV/BCH/BTC 地址,有新收歀时,发一条通知,支持微信和 Telegram

image

安装

$ git clone https://github.com/cyio/block-monitor
$ npm install

配置

  1. 复制配置模板
$ cp config.json.template config.json

配置说明

  • address_type 要监视的地址类型,bsv 或 bch 或 btc
  • server_chan_key 需要你配置 Server酱,并提到专属 key ,默认为空。配置方生效
  • telegram_bot_keytelegram_chat_id",请参考 Telegram Bot Api 文档设置
{
  "address_type": "bsv",
  "server_chan_key": "",
  "telegram_bot_key": "",
  "telegram_chat_id": ""
}
  1. 创建文件./node_modules/addresses.txt 一行一个地址,支持 legacy 和 cashAddress

持久运行(需另行配置 pm2 或类似工具)

pm2 start index.js --watch --name 'blockchain-monitor'