Content
@
https://warpcast.com/~/channel/zapper
0 reply
0 recast
0 reaction
Project7
@project7
Currently, Mint.club has a โMy Portfolioโ tab that directs our users to the /zapper site, and it would be fantastic if they could view Mint.club tokens directly on Zapper.
6 replies
0 recast
5 reactions
Sangohan.base.eth ๐
@sangohan
I created a small front-end that, when connected with Thirdweb, displays all the Mint Club tokens held on Base and Degen for now. For HAM, Iโm having a bit of trouble due to the stack lock tokens, etc. I canโt figure out where to retrieve them ๐ . The tabs are dynamic based on the parent tokens. Each parent token displays the list of child tokens. Unfortunately, I donโt have time to refine it and put it online. But I hope to have time this weekend to release at least a small version for testing. Personally, I use it every day and itโs a game-changer for me. But the APIs for prices in $ are expensive too ($NaN) ๐ซ.
2 replies
0 recast
3 reactions
sebayaki.eth
@if
This is great! 16384 ๐๐ป๐๐ป๐๐ป๐๐ป How do you get all token balances? Do you call token.balanceOf for all 20k tokens on Base, or do you use indexed data from some APIs?
1 reply
0 recast
1 reaction
Sangohan.base.eth ๐
@sangohan
Tysm ๐ ! Actually, I have a backend that I use as an API for different tests when I develop. At the moment, here's how I do it for the /base page, for example: I retrieve all the tokens held on the base network by the connected wallet I filter out spam I call getReserveToken and return to the front-end only the tokens that have a valid reserveToken In the frontend, based on the unique reserveTokens, I create the tabs dynamically I call getPriceForNextMint to display a value My backend calls Coingecko for the $ value of the reserveToken I store the value to avoid calling the API unnecessarily and I perform the necessary calculations to display the correct values. For the route, itโs nice because for each chain, I just need to modify the beginning of the URL via variables or environment variables since itโs always the same calls to get the list of held tokens (/api?module=account&action=tokenlist&address=${address}) That's how it works for now.๐
2 replies
0 recast
2 reactions