Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/liyingxuan/asset-monitor
Asset monitor
https://github.com/liyingxuan/asset-monitor
Last synced: 4 days ago
JSON representation
Asset monitor
- Host: GitHub
- URL: https://github.com/liyingxuan/asset-monitor
- Owner: liyingxuan
- Created: 2019-05-31T10:41:06.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-06-19T13:28:01.000Z (over 5 years ago)
- Last Synced: 2024-11-09T19:12:58.388Z (2 months ago)
- Language: JavaScript
- Size: 13.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Asset monitor
目前已经完成了ETH的合约资产某地址监控。
### Development
```bash
$ npm i
$ npm run dev
$ open http://localhost:7001/
```### Deploy
```bash
$ npm start
$ npm stop
```### Config
#### Address list
> asset-monitor/app/public/load-files/addresses.json
```json
[
{
"contractAddress" : "需要监控的合约资产Hash",
"addresses": [
{
"address": "需要监控的ETH地址",
"value": "对比的值,不一样会自动发送邮件"
}
]
}
]```
#### Email list
> asset-monitor/app/public/load-files/emails.json
```json
[
"需要通知的邮件地址,用逗号分隔,可以多个"
]
```#### API key
> 本地环境: asset-monitor/config/config.local.js ;
生产环境: asset-monitor/config/config.prod.js :```javascript
'use strict';module.exports = {
apiKey: {
token: 'https://etherscan.io/ 的 API-Key Token',
},
emailParams: {
address: '你自己的QQ邮箱,暂时只支持QQ邮箱发送',
code: 'QQ邮箱授权码,暂时只支持QQ邮箱发送',
},
};```
End.