Configuration of Limits for JSON-RPC Interface
Below are the configuration limits for the following JSON-RPC methods:
Note: These limits are available from Fingerroot v5.1.0.
JSON-RPC method eth_getLogs limits
The added configuration in the RSKj client's configuration files allows the control of two limits related to the eth_getLogs JSON-RPC call, which is used to retrieve event logs from smart contracts on the Rootstock blockchain.
Maximum blocks to query
The maxBlocksToQuery refers to the maximum number of blocks to query.
This parameter determines the maximum number of blocks the RSKj client will query on the blockchain when executing an eth_getLogs call. By default, this value is disabled, meaning that if no value is specified, the RSKj client will query event logs from all blocks specified in the parameters of the eth_getLogs call. If a limit is defined and the eth_getLogs call exceeds this limit, the query execution will be terminated, and an error code will be returned.