Simulates transactions without actually executing them on the blockchain. This method allows for testing transaction outcomes, estimating gas usage, and validating transaction logic before submission.
eth_simulateV1
JSON-RPC method provides transaction simulation capabilities on the Hyperliquid EVM blockchain. This method allows developers to execute transactions in a controlled environment without actually submitting them to the blockchain, enabling testing, gas estimation, and outcome prediction.
blockStateCalls
(array, required) — Array of block state call objects
calls
(array, required) — Array of transaction calls to simulate
from
(string, optional) — Transaction sender addressto
(string, optional) — Transaction recipient addressgas
(string, optional) — Gas limit as hexadecimal stringgasPrice
(string, optional) — Gas price as hexadecimal stringvalue
(string, optional) — Transaction value as hexadecimal stringdata
(string, optional) — Transaction data as hexadecimal stringblockOverride
(object, optional) — Block state override options
number
(string) — Block number to simulate against (e.g., “latest”)traceTransfers
(boolean, optional) — Whether to trace token transfers during simulationvalidation
(boolean, optional) — Whether to perform validation during simulationresult
— Object containing simulation outcome data including gas estimates, transaction success status, and any error messageseth_simulateV1
method is essential for applications that need to:
Successful response with simulation results
The response is of type object
.