polkadot-js / api

Promise and RxJS APIs around Polkadot and Substrate based chains via RPC calls. It is dynamically generated based on what the Substrate runtime provides in terms of metadata.
Apache License 2.0
1.06k stars 342 forks source link

withClaimedRewardsEras, rate limit exceeded #5923

Open ironoa opened 3 days ago

ironoa commented 3 days ago

related to https://github.com/polkadot-js/api/issues/5859

api.derive.staking.query(validatorAddress,{withLedger:true, withClaimedRewardsEras: true})

seems to be so heavy that I get a RPC-CORE: queryStorageAt(keys: Vec<StorageKey>, at?: BlockHash): Vec<StorageChangeSet>:: -32999: RPC rate limit exceeded error message when I'm connected to a public endpoint. Kusama node (v1.13.0).

Not sure that's expected, so I'm opening this issue...