- TurtleCoin
- MariaDB/MySQL with InnoDB support
- Node.js LTS
- Clone this repository to wherever you'd like as long as it can communicate with your SQL server to run:
git clone https://github.com/TurtlePay/blockchain-data-collection-agent
- Install the required Node.js modules
cd blockchain-data-collection-agent && npm install
-
Load the database schema from
schema.sql
into your configured database. -
Fire up the script
export MYSQL_HOST=localhost
export MYSQL_PORT=3306
export MYSQL_USERNAME=yourdbusername
export MYSQL_PASSWORD=yourdbpassword
export MYSQL_DATABASE=yourdbname
export NODE_HOST=localhost
export NODE_PORT=11898
node index.js
- Optionally, install PM2 or another process manager to keep the service running.
npm install -g pm2@latest
pm2 startup
pm2 start index.js --name blockchain-data-collection-agent
pm2 save
- Wait to build your database cache (this is likely to take days depending on the size of your chain)