The problem
A mainnet fork at a past block makes thousands of state reads; on per-request pricing every test run costs money.
How archive RPC helps
- Foundry and Anvil forks at any historical block.
- eth_getStorageAt and eth_getCode to inspect contracts as they were.
- Flat pricing: run the fork test suite as often as you like.
Methods you will call
- eth_getStorageAtReturns the raw value of a contract storage slot at a given block.
- eth_getCodeReturns the bytecode deployed at an address at a given block.
- eth_callExecutes a read-only contract call against the state of a given block, without sending a transaction.
- eth_getBalanceReturns the native token balance of an address at a given block.
Example
Foundry fork at a past block
forge test --fork-url $L0VD_URL --fork-block-number 18908895
anvil --fork-url $L0VD_URL --fork-block-number 18908895Which plan
Builder for one auditor; Growth for a team running CI on forks. See pricing or how it compares.