V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
爱意满满的作品展示区。
cyio
V2EX  ›  分享创造

BCH/BTC 地址收款监视,有新收歀时,发一条微信或 Telegram 通知

  •  
  •   cyio ·
    cyio · 2017-12-31 23:40:24 +08:00 · 2803 次点击
    这是一个创建于 2279 天前的主题,其中的信息可能已经有所发展或是发生改变。

    收到币想马上收到提醒? 资产可能不想放手机,或者不想用钱包软件? 要能跨设备提醒更好? 没见到比较好的 watch 功能,于是自己写了这个 nodejs 脚本

    几天前写的,没有实际转账测试,最近 Twitter 上通过 @tippr 收到一次打赏,刚刚想着试下提现吧,马上就收到 Telegram 通知了,手续费给的有点高
    通知详情里有 查看交易 链接,用的 btc.com

    项目地址 cyio/blockchain-monitor: 监视指定 BCH/BTC 地址,有新收歀时,发一条微信或 Telegram 通知

    blockchain-monitor

    功能

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

    安装

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

    配置

    复制配置模板

    $ cp config.json.template config.json
    

    配置说明

    • address_type bch/btc
    • observed_address 监视地址
    • server_chan_key 需要你配置 Server 酱,并提到专属 key
      • telegram_bot_keytelegram_chat_id",请参考 Telegram Bot Api 文档设置
      • 设置 key 的才会发送,一般根据使用偏好,设置一个即可
    {
      "address_type": "bch",
      "observed_address": "",
      "server_chan_key": "",
      "telegram_bot_key": "",
      "telegram_chat_id": ""
    }
    

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

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

    如果有朋友想给我测试打赏的话,BCH 收款地址

    目前尚无回复
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   3328 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 10:45 · PVG 18:45 · LAX 03:45 · JFK 06:45
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.