js
js copied to clipboard
findAllByOwner with RPC Limit
I'm using Quicknode rpc to fetch all nfts by owner... Everything was working fine for months, but now QN has put a limit on getMultipleAccounts to improve the performance. So now calling:
const allNFTs = await metaplex.nfts().findAllByOwner({ owner });
// results:
Error: 413 Request Entity Too Large: {"jsonrpc":"2.0","id":"3c3ba0bd...","error":{"code":-32602,"message":"getMultipleAccounts, eth_getLogs, and eth_newFilter are limited to a 75 range"}}
What would be the solution for that? I think adding pagination params could fix this issue. Thoughts?
Having same issue, its been like 3 days it started :/ for now i'm treating the error and trying again with a different rpc...