Roadmap:

  • fetch token information
  • discover when contract was created
  • fetch token liquidity pair
  • [] fetch token swaps
  • [] listen for swaps via socket

fetch token swaps process:

  1. input: token address
  2. get token liquidity pool address
  3. find out when the contract was created
  4. fetch swaps from the day it was created
  5. update datbase
  6. listen for swaps on socket

notes:

  • handle edge cases for all functions

bugs:

  • search address first transaction may take more than 1 try to get result (?)
  • find a better way to incorporate api keys, especially in the etherscan search addrs first tx function