Using prompts to locate required rollup variables
INDEXER_ARBITRUM_L1_ROLLUP_INIT_BLOCK
and INDEXER_ARBITRUM_L1_RPC_HISTORICAL_BLOCKS_RANGE
Find the rollup init block
OutputInfo.json
file in the main directory of your script folder). In this example we use the Holesky chain.prompt example: 0x798CA465048fa8ec711FFc8cE0F03409f6985a04
on Holesky, and which block was it deployed in?”**answer: **
Based on the blockchain analysis shown in your prompt, the deployment transaction for the contract0x798CA465048fa8ec711FFc8cE0F03409f6985a04
on Holesky is: 0x4bd7b36d779cd66a968810cef5926a5fb246d5291ec4e6551d46a1cd639e287e This transaction was included in Block Number: 3,325,914 on the Holesky blockchain.
Get initial value for historical blocks range
SequencerBatchDelivered
event. Then look at the latest logs emitted by the contract to identify how often new SequencerBatchDelivered
events appear in the chain.”INDEXER_ARBITRUM_L1_RPC_HISTORICAL_BLOCKS_RANGE
.answer: Specific Recommendation:INDEXER_ARBITRUM_L1_RPC_HISTORICAL_BLOCKS_RANGE=1000
Rationale:Alternative Considerations:
- Conservative Approach: The documentation recommends choosing a block range that covers 1 or 2 batches when the block production rate is low (like 12 seconds for Ethereum/Holesky)
- Time Coverage: 1000 blocks × 12 seconds = ~3.3 hours of Holesky history, which should easily cover multiple batch cycles
- RPC Compatibility: 1000 blocks is a safe range that most RPC providers support without hitting rate limits
- Batch Frequency Match: Given the observed frequent batch delivery pattern, 1000 blocks provides sufficient coverage for reliable indexing
Monitoring Recommendation: Start with 1000 blocks and monitor the indexer logs. If you see rate limit errors, reduce the chunk size. If you experience latency in batch identification, you may need to adjust the tracking intervals or block range. The 1000 block range should provide a good balance between comprehensive coverage and RPC node compatibility for your Holesky Arbitrum rollup deployment.
- If batches are very frequent (every few minutes): Consider increasing to 1500-2000 blocks
- If RPC node has higher limits: Could potentially use 2000-5000 blocks for better efficiency
- If experiencing timeouts: Reduce to 500-750 blocks