Skip to content

Instantly share code, notes, and snippets.

@mrice32
Created December 7, 2021 19:55
Show Gist options
  • Save mrice32/ecd35a8114e32e3f28381e3e7763f136 to your computer and use it in GitHub Desktop.
Save mrice32/ecd35a8114e32e3f28381e3e7763f136 to your computer and use it in GitHub Desktop.
// db is the contract at address: https://arbiscan.io/address/0xd8c6dd978a3768f7ddfe3a9aad2c3fd75fa9b6fd#code
> await db.getPastEvents("FundsDeposited", { fromBlock: "3643470", toBlock: "3645471" })
Uncaught:
Error: Returned error: Log response size exceeded. You can make eth_getLogs requests with up to a 2K block range and no limit on the response size, or you can request any block range with a cap of 10K logs in the response.
at Object.ErrorResponse (/Users/matt/git/protocol/node_modules/web3-core-requestmanager/node_modules/web3-core-helpers/lib/errors.js:28:19) {
data: {
stack: 'ProviderError: Log response size exceeded. You can make eth_getLogs requests with up to a 2K block range and no limit on the response size, or you can request any block range with a cap of 10K logs in the response.\n' +
' at HttpProvider.request (/Users/matt/git/protocol/node_modules/hardhat/src/internal/core/providers/http.ts:49:19)\n' +
' at HDWalletProvider.request (/Users/matt/git/protocol/node_modules/hardhat/src/internal/core/providers/accounts.ts:173:34)\n' +
' at runMicrotasks (<anonymous>)\n' +
' at processTicksAndRejections (internal/process/task_queues.js:95:5)\n' +
' at Web3HTTPProviderAdapter._sendJsonRpcRequest (/Users/matt/git/protocol/node_modules/@nomiclabs/hardhat-web3/src/web3-provider-adapter.ts:80:22)',
name: 'ProviderError'
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment