Skip to main content

Module simulate

Module simulate 

Source
Available on crate feature rpc only.
Expand description

Utilities for serving eth_simulateV1

Enums§

EthSimulateError
Errors which may occur during eth_simulateV1 execution.

Constants§

SIMULATE_REVERT_CODE
Error code for execution reverted in eth_simulateV1.
SIMULATE_VM_ERROR_CODE
Error code for VM execution errors (e.g., out of gas) in eth_simulateV1.

Functions§

apply_precompile_overrides
Applies precompile move overrides from state overrides to the EVM’s precompiles map.
build_simulated_block
Handles outputs of the calls execution and builds a SimulatedBlock.
execute_transactions
Converts all TransactionRequests into Recovered transactions and applies them to the given BlockExecutor.
resolve_transaction
Goes over the list of TransactionRequests and populates missing fields trying to resolve them into primitive transactions.