indexer icon indicating copy to clipboard operation
indexer copied to clipboard

Running a subgraph and hitting rate limits.

Open Logic-Beach opened this issue 2 years ago • 1 comments

Hi team, I am running an indexer which grabs the latest block number, then hits my RPC with an eth_getTransactionReceipt request for every tx in the block. This is causing a bunch of 429 errors since the 1000s of requests hit the RPC all at once. Is there any way around this?

Logic-Beach avatar Dec 22 '23 20:12 Logic-Beach

Graph-node will slow down when it gets a 429 response.

The solution to do fast indexing is to run your own RPC node. Or use firehose.

matthewdarwin avatar Dec 23 '23 04:12 matthewdarwin

Graph-node now supports fetching all receipts in a single request using eth_getBlockReceipts (https://github.com/graphprotocol/graph-node/pull/5341). That should help with the request volume.

fordN avatar Jul 12 '24 18:07 fordN