Content pfp
Content
@
https://warpcast.com/~/channel/zapper
0 reply
0 recast
0 reaction

Project7 pfp
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 🟠 pfp
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 pfp
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 🟠 pfp
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

sebayaki.eth pfp
sebayaki.eth
@if
sounds great! thanks for your kind explanation! 16384 πŸ‘πŸ»πŸ‘πŸ»πŸ‘πŸ»πŸ‘πŸ»
1 reply
0 recast
1 reaction

Sangohan.base.eth 🟠 pfp
Sangohan.base.eth 🟠
@sangohan
With pleasure. It’s not perfect, but the backend saves time, so I think I’ll use it even though I would have preferred to have everything on the frontend πŸ˜„ πŸ– x 1000
0 reply
0 recast
1 reaction