Repository
https://github.com/gigatoride/steemradar.js
SteemRadar
Logo design by only licensed for contributions related to this project
New Features
Readable Streams
In previous version, regular callbacks had been used.
Now each method is a readable stream for more reliable usage and better error handling with the support for pausing and resuming for each method.
it also includes destroy function.
Tracking Funds
A new feature now available for tracking funds from an account to another or you can begin with your transaction ID.
Single-Track
Single-track is finished and ready to use it will inform you each time the funds moves throws the blockchain transaction flow and it will be an object like the following
{ trxId: '7392f86a9307a6cbdb8155642e6a3d23be9d0505',
username: 'deepcrypto8',
amount: '92.600 STEEM',
timestamp: '2019-03-01T13:18:21',
percentage: 100 }
Steem deposit accounts for exchanges include the following:
- blocktrades
- deepcrypto8
- huobi-pro
- bittrex
- bithumb.live
- openledger-dex
- changelly
- onepagex
- poloniex
- shapeshiftio
- hitbtc-exchange
- upbituserwallet
The above exchanges will be an endpoint for the fundsTracker stream.
Also, anyone can open a pull request to add more exchanges.
Account Security
Steem account security is important as any change in private keys or unauthorized activity on account funds can be very dangerous.
With this method, you will be able to stream and detect sensitive changes on any Steem account
transfer_from_savings
In case your saving funds have been withdrawn.change_recovery_account
In case your recovery account has been changed,account_update
Any account update on your profile or your private keys.More than 50% of your account funds have been transferred.
Implementation
if you already have the older version you can update this package by the following command
$ npm update
or you can install the package by the following command
$ npm install steemradar
Create new instance
const steemradar = require('steemradar');
const scan = new steemradar.Scan();
Tracking funds:
First parameter is Steem account username and the second is transaction ID (optional).
scan.blockchain.fundsTracker('gigatoride', '7392f86a9307a6cbdb8155642e6a3d23be9d0505')
.on('data', (d)=>{
console.log(d);
scan.blockchain.fundsTracker.pause();
})
.on('error', console.log)
Security method each time an update on your account related to the funds or profile updates or keys etc..
It will be written in the stream with full transaction details it also includes
account_update
change_recovery_account
transfer_from_savings
or if more than 50% of your account funds has been transferred you will be informed.
scan.blockchain.security('gigatoride')
.on('data', (d)=>{
console.log(d);
scan.blockchain.security.pause();
})
.on('error', console.log)
Pause all blockchain methods
scan.blockchain.pause();
Pause scan instance
scan.pause();
Resume all blockchain methods
scan.blockchain.pause();
Resume scan instance
scan.resume();
Also you can close all blockchain methods:
scan.blockchain.close();
Utopian-io is also extended from blockchain class
scan.utopian.close();
Testing
You can easily test the main methods by following command:
npm test
What's next?
- Multiple stream modes types.
- Multi-track for fundsTracker method.
- More monitoring!
Commits
Commits on Mar 3, 2019
https://github.com/gigatoride/steemradar.js/commits/master