Skip to content

AoiToSouma/blocksscan_api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

blocksscan_api

Record changes in the wallet's XRC20 token balance using Blocksscan Api.
Record to DB using sqlite.

Install the repo

git clone https://github.com/AoiToSouma/blocksscan_api.git
cd blocksscan_api
chmod +x *.sh

Edit configuration

nano .env

sleeptime : API execution interval(defalut is 300 seconds)
dbname : sqlite DB name for logging records
csvfile : Prefix of CSV file when outputting records from DB

Edit address informations

nano address.json

Register the addresses to monitor.
If you want to monitor only a specific token, also include the token_address.
If you want to monitor a specific wallet at an interval different from sleeptime, also include interval_timer.
The unit of interval_timer is seconds.
Records in json format.

Initial setting

./initialize.sh

Firstly, "sqlite3", "bc", "jq" package is required.
If these packages are not installed, this process will automatically install them.
The DB will be created in the "data" directory.

Wallet monitoring

pm2 BalanceCheck.sh

If there is a difference between the XRC20 token in the wallet and the previous value, it will be recorded in the DB.

Output data to csv file

./OutputCsv.sh 

It can be loaded into a spreadsheet.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages