Go to file
Nicholas Clarke d728692eb7 Add limit to getNewAddressTransactions (encountered memory issues when ran against too many transactions). 2021-11-17 23:19:06 -08:00
src Add limit to getNewAddressTransactions (encountered memory issues when ran against too many transactions). 2021-11-17 23:19:06 -08:00
.gitignore fix division by 0 and correctly deploy from master branch 2021-09-06 15:43:23 +02:00
Procfile fix division by 0 and correctly deploy from master branch 2021-09-06 15:43:23 +02:00
README.md Set pnl cache to update via node cron 2021-07-18 23:16:09 -07:00
package.json fix division by 0 and correctly deploy from master branch 2021-09-06 15:43:23 +02:00
tsconfig.json Initial commit 2021-07-18 17:25:03 -07:00
yarn.lock fix division by 0 and correctly deploy from master branch 2021-09-06 15:43:23 +02:00

README.md

Mango transaction scraper

Collects and stores transactions made by the Mango program and Oracle program (used by the Mango program). Does so by

  • fetching new signatures from the program (getConfirmedSignaturesForAddress2)
  • using those signatures to fetch transactions (getParsedConfirmedTransaction)
  • parsing details of the transactions (looking at the token accounts and also transaction logs)
  • stores details into a postgres database

Run

As the app requires the postgres database as a backend - it is not self contained. However, if the postgres db is setup:

yarn install
yarn start

Configuration

Configuration is handled via environmental variables.

export TRANSACTIONS_CONNECTION_STRING=
export REQUEST_WAIT_TIME=
export ORACLE_PROGRAM_ID=
export MANGO_PROGRAM_ID=
export CLUSTER_URL=
export CLUSTER=
export TRANSACTIONS_SCRAPER_WEBHOOK_URL=