Skip to content

Latest commit

 

History

History
55 lines (43 loc) · 1.3 KB

README.md

File metadata and controls

55 lines (43 loc) · 1.3 KB

eth-wallet-notify

  • Track wallet accounts.
  • Track wanted Erc20 token transfer.
  • Track block number for confirmations count.
  • Track internal transactions.

General Description

A sample "replacement" to bitcoind wallet-notify logic , Using web3 with Node 8+.

Tested on windows and ubuntu 18.04, using local parity with Ropsten testnet.

you can use infura node, but first change the code to get your wanted account list. check out config.js

Requirements

Setup

npm install
npm start

Setup as a daemon service for ubuntu using systemctl

create a new file at your service folder (usually at /etc/systemd/system) :

nano /etc/systemd/system/eth-wallet-notify.service

and past in the following:

[Unit]
Description=Eth Blockchain Tracker
After=network.target

[Service]
Environment=NODE_PORT=3001
Type=simple
User=ubuntu
ExecStart=/usr/bin/node <path-to-eth-wallet-notify>/src/index.js
Restart=always
RestartSec=1s

[Install]
WantedBy=multi-user.target

then run:

systemctl enable eth-wallet-notify
systemctl start eth-wallet-notify