EOSEssentials / Eos Node Watcher
Licence: mit
Watch & Filter EOS Nodes Transactions/Actions and pushes to RabbitMQ, MongoDB, 0MQ etc.
Stars: ✭ 45
Programming Languages
javascript
184084 projects - #8 most used programming language
EOS Node Watcher
The goal of this watcher is to easily replay chains from the desired block (let's say after you deploy your contract is what usually matters), filter the block actions related to your desired contracts and submit it to your desired channel: message queues, websockets, databases etc.
Setup
cd ~
git clone https://github.com/leordev/eos-node-watcher
cd eos-node-watcher
npm install
vi config.json # here you will customize the setup to your needs
node index.js
Configuration
Here's the default configuration example
{
"watchInterval": 500,
"eosApi": "http://mainnet.eoscalgary.io/v1",
"eosHistoryApi": "http://api.cypherglass.com/v1",
"apiTimeout": 3000,
"initialBlock": 1293913,
"accounts": {
"monstereosio": [], # leave an empty array to listen to all the actions
"eosio.token": [ # here you can filter all the actions
{
"name": "transfer",
"data": { "to": "monstereosio" } # (optional) if you set the data, it
} # will filter the actions parameters
]
},
"mongodb": {
"isActive": true,
"address": "mongodb://localhost:27017",
"database": "eos_node_watcher",
"prefix": "enw_"
},
"zeromq": {
"isActive": false,
"address": "tcp://*:60400"
},
"amqp": {
"isActive": true,
"address": "amqp://localhost",
"channel": "eosnodewatcher"
}
}
Next Steps
- Add more "pusher" options and possibily split that file to single pusher per file
- Improve the action filters (test for vectors and add some "sql-style" options eg. LIKE
%
etc.) - ??? Accepting ideas! :)
Feel free to fork, collaborate and add ideas!
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].