- Track wallet accounts.
- Track wanted Erc20 token transfer.
- Track block number for confirmations count.
- Track internal transactions.
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
npm install
npm start
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