estarriolvetch / ERC721Psi

MIT License
117 stars 29 forks source link

balanceOf can run out of gas #11

Closed m4nuC closed 1 year ago

m4nuC commented 2 years ago

If the current supply gets very high (say 50k+) then balanceOf call potentially run out of gas. Infura for instance caps eth_call to 60Millions gas.

What are your thoughts on this issue ?

estarriolvetch commented 2 years ago

You are absolutely correct. If you need more than 6M gas, you can use alchemy which offers 300 million gas.

On the other hand, you may consider just using the NFT API from Alchemy or quicknode directly if you have a big collection.

If you really need balalceOf​, you can also use the AddressData​ extension.

Sent with Proton Mail secure email.

------- Original Message ------- On Monday, July 4th, 2022 at 06:27, EmmanuelC @.***> wrote:

If the current supply gets very high (say 50k+) then balanceOf call potentially run out of gas. Infura for instance caps eth_call to 60Millions gas.

What are your thoughts on this issue ?

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.Message ID: @.***>