Check Deposits service for @Honktipbot
This is a service that listen for new deposit transactions in SLP network. If new deposit was found it sends notification to user and update balance. To send notification we will use RabbitMQ. To listen SLP network use https://slpsocket.fountainhead.cash
-
Clone this repo:
git clone https://github.com/KeithPatrick5/checkDeposits
-
Create AWS DynamoDB tables:
- Bot-Session (primary key: Session [string])
- Bot-checkDeposit (primary key: address [string])
-
Create
.env
file with the environment variables listed in.env.example
-
Install
NodeJS 10x
&&npm 6x
-
Run in the root folder
npm install
-
Install RabbitMQ
-
Setup your EventSource url in index.js
-
Run
npm start