The problem
Stress tests and backtests need positions, prices and health factors at many past blocks.
How archive RPC helps
- eth_call on lending pools and oracles at any block.
- eth_simulateV1 to replay what-if scenarios with state overrides.
- Steady RPS for continuous monitoring without metered surprises.
Methods you will call
- eth_callExecutes a read-only contract call against the state of a given block, without sending a transaction.
- eth_simulateV1Simulates a sequence of calls across one or more blocks with state and block overrides, without sending anything.
- eth_getLogsReturns all logs (events) that match a filter over a block range.
- eth_feeHistoryReturns base fees, gas usage ratios and priority fee percentiles for a range of recent blocks.
Example
Oracle price at a past block (ethers)
const oracle = new Contract(ORACLE, ["function latestAnswer() view returns (int256)"], provider);
const price = await oracle.latestAnswer({ blockTag: 18_908_895 });Which plan
Growth or Scale depending on how many positions you track. See pricing or how it compares.