← Voltar
70/100r/ethdev · @thedudeonblockchain · Wevolv3 · Development

Optimizing multi-chain data fetching for an EVM wallet tracker without requiring wallet connection. How do you handle RPC and API latency?

Abrir no Reddit ↗
💡 Por que é um lead: [PROJECT/ENGAGEMENT] Founder/dev discussing technical challenge (multi-chain data fetching) for an EVM wallet tracker, a web3 project; not a direct service request but relevant for growth/development insight.

Post original

the multicall3 suggestion isnt a clean swap for blockscout because of token discovery. multicall is great once you know which erc20s to read, but the hard part blockscout is doing for you is telling you which tokens an arbitrary address even holds per chain. go to raw rpc and youre back to maintaining a token list per network or scanning Transfer logs to find holdings, which is its own indexing job for read only balances id skip self indexing entirely and use a portfolio api that already does the multichain holding lookup in one call (alchemy portfolio, covalent, zerion, ankr all expose this). then cache per chain with stale-while-revalidate keyed on the latest block so first paint is instant and each chain refreshes on its own, which is the snapshot first thing others mentioned the arbitrum lag youre seeing is almost certainly the explorer indexer trailing the chain not your code. hit the arb rpc directly for the same address and compare, if rpc is current and blockscout isnt thats your answer

Rascunhos

Resposta pública
yo this is spot on. portfolio api + stale-while-revalidate keyed on block number is exactly how we solved it too. the per-chain async refresh thing makes first paint feel instant even if some chains are slow
DM
gm saw your reply in ethdev and honestly you get it more than most ppl. the portfolio api + swr cache approach is what we landed on too when building out multichain stuff at wevolv3. if you're ever looking to ship faster or need hands on deck for the indexing/bot side i can intro you to the team, they're solid engineers who actually speak solidity not just react lol

Postar no Reddit

Post automático desativado — faltam as credenciais REDDIT_* (OAuth). Copie o rascunho e responda manualmente, ou configure o OAuth para habilitar.

Status