https://github.com/bengabp/dexscreener
Reverse engineering dexscreener avro encryption to fit my web scraping needs
https://github.com/bengabp/dexscreener
avro-kafka encryption-decryption expressjs
Last synced: 8 months ago
JSON representation
Reverse engineering dexscreener avro encryption to fit my web scraping needs
- Host: GitHub
- URL: https://github.com/bengabp/dexscreener
- Owner: bengabp
- Created: 2024-05-04T13:56:39.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2025-01-01T11:13:19.000Z (over 1 year ago)
- Last Synced: 2025-01-27T06:18:20.936Z (over 1 year ago)
- Topics: avro-kafka, encryption-decryption, expressjs
- Language: JavaScript
- Homepage:
- Size: 2.12 MB
- Stars: 21
- Watchers: 1
- Forks: 4
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Reverse engineering [dexscreener](https://dexscreener.com) avro encryption to fit my web scraping needs
Before running the api, make sure you have node >= v18 installed
## Running the api
```bash
npm install
node main.js
```
## Using Docker
```bash
docker build -t dexscreener:v1 .
docker run -d --name dexscreener-api -p 3000:3000 dexscreener:v1
```
## Sending requests
There are 2 important endpoints:
- GET `/pairs` - use query parameter `q` to 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: `q` for token address, `m` for wallet hash and `c` which should be set to `1`.
For pagination, if you want to get results above page 1, set query parameter `bbn` `blockNumber` to value which is returned by previous page (`blockNumber` field)
Get transaction logs of a wallet in a pool (including summary data)
