Learn how to recommend ERC-20 tokens that are trending amongst all Base users.
In this guide, you will learn how to use Airstack to recommend all trending tokens among all Base users within a given time frame. This API makes use of Airstack Abstractions to calculate the results in milliseconds; no compute or backend database required on your end.
Only fetch trending tokens within the chosen time frame, e.g. one_hour will fetch trending mints for the last 1 hour.
criteria
unique_wallets | total_transfers | unique_holders
This will calculate and sort the tokens based on the chosen criteria:
- unique_wallets: Calculate the number of unique wallets transfer the trending tokens
- total_transfers: Calculate the number of times transfers occurred on the trending token
- unique_holders: Calculate the number of unique wallets that hold the trending tokens
swappable
boolean
This will only return tokens that are swappable if set to true. Otherwise, include all tokens whether swappable or not in DEX.
Once you have the parameters prepared, simply use the query below and add the parameters as variables:
đ đĨŗ Congratulations you've just fetched all the trending tokens among all Base users and integrate it into your application!
Developer Support
If you have any questions or need help regarding integrating or building trending tokens into your application, please join our Airstack's Telegram group.