to make it do loops without relying on frontend (ik it'll cost, but comparatively, which will cost more?
i am not understanding
like I have a mapping of ids to uint to addres for 1155 nft ids, owner and supply owned data, now I wanna get all the data of all ids directly from the contract, then in that case will using an array instead of that mapping cost more or using the mapping call would cost more
https://docs.openzeppelin.com/contracts/4.x/api/utils#EnumerableSet
you would probably get out of gas error
Oh like the block limit one?
read calls have gas limit too
I'm not sure how that thing could scale without hitting the limit (block and rpc rate limit)
multicalls of getData(from_index, to_index) i guess :o
Both limits still apply
I see rpc rate limit matters in smart contracts?
Обсуждают сегодня