Reverse engineering dexscreener avro encryption to fit my web scraping needs
Before running the api, make sure you have node >= v18 installed
npm install
node main.jsdocker build -t dexscreener:v1 .
docker run -d --name dexscreener-api -p 3000:3000 dexscreener:v1There are 2 important endpoints:
-
GET
/pairs- use query parameterqto pass token address This endpoint is called on dexscreener.com when you try to search token pairs, it returns the decrypted results as json
-
GET
/logs- supported query parameters:qfor token address,mfor wallet hash andcwhich should be set to1. For pagination, if you want to get results above page 1, set query parameterbbnblockNumberto value which is returned by previous page (blockNumberfield) Get transaction logs of a wallet in a pool (including summary data)