Skip to main content

eth_simulateV1

Executes a sequence of message calls building on each other's state without creating transactions on the block chain, optionally overriding block and state data

Params

(2)

1. Payload (required)

blockStateCalls
Block State Calls
required

Definition of blocks that can contain calls and overrides

traceTransfers
boolean

Adds ETH transfers as ERC20 transfer events to the logs. These transfers have emitter contract parameter set as address(0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee). Default: false.

validation
boolean

When true, the eth_simulateV1 does all validations that a normal EVM would do, except contract sender and signature checks. When false, eth_simulateV1 behaves like eth_call. Default: false.

returnFullTransactions
boolean

When true, the method returns full transaction objects, otherwise, just hashes are returned.

2. Block tag

default: 'latest'

(any of)
string
Match pattern:
^0x(0|[1-9a-f][0-9a-f]*)$

Result

(Result of calls)
error
required

Params

Payload

Block tag


Request

await window.ethereum.request({
"method": "eth_simulateV1",
"params": [
null,
null
]
});