Hwee-Boon Yar
Hwee-Boon Yar
@JamesSmartCell There are 4 related limits here, optionally enforced by RPC nodes: A. The block number range for a single eth_getLogs call B. The number of events that can be...
cc @seabornlee who might be interested in following since https://github.com/AlphaWallet/alpha-wallet-android/issues/2735#issuecomment-1193495214
> A. doesn't appear to be enforced on any of the chains (that I tested against). Providing there are fewer than the event limit events, all can be returned by...
> A. doesn't appear to be enforced on any of the chains (that I tested against). Providing there are fewer than the event limit events, all can be returned by...
https://github.com/AlphaWallet/alpha-wallet-ios/blob/4d41f17c1e2ea44ad733ee3eb90be33fa7b0cbe6/AlphaWallet/Settings/Types/RPCServers.swift#L868 is about range. Example, 0 - latest: ``` curl -H 'accept: application/json' -H 'content-type: application/json' -H 'user-agent: AlphaWallet/395 CFNetwork/1237 Darwin/20.5.0' -H 'accept-language: en-us' --data-binary '[{"jsonrpc":"2.0","method":"eth_getLogs","id":1,"params":[{"fromBlock": "0x0", "toBlock":"latest","topics":[null,null,null,"0x00000000000000000000000080cc263cb3fa1be2aec748b3811261c1e2a1ba8d"]}]}]' --compressed 'https://bsc-dataseed.binance.org'...
> Which chains specifically did you encounter the range issue? https://github.com/AlphaWallet/alpha-wallet-ios/blob/4d41f17c1e2ea44ad733ee3eb90be33fa7b0cbe6/AlphaWallet/Settings/Types/RPCServers.swift#L868
@seabornlee nah. Later
@Hoanib thanks the list is great. The groups (where the tokens appear) other than then in "All" is controlled by a file we build in this repo: https://github.com/AlphaWallet/tokens/. We can't...
Yeah, aware of that. They have an API I intend to look at. It's at least useful for the total balance.
Should get @colourfreak's input on this.