You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: services/reference/ethereum/json-rpc-methods/eth_simulatev1.mdx
+40-39Lines changed: 40 additions & 39 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@ title: "eth_simulateV1"
5
5
importTabsfrom'@theme/Tabs';
6
6
importTabItemfrom'@theme/TabItem';
7
7
8
-
Simulate transactions across multiple blocks. Allows you to test transactions with custom state and
8
+
Simulates transactions across multiple blocks. Allows you to test transactions with custom state and
9
9
block parameters without submitting them to the network.
10
10
11
11
:::info important
@@ -26,7 +26,7 @@ assessing the `blockStateCalls` array of objects.
26
26
- `gasLimit`: (string) Hexadecimal value that represents the maximum amount of gas that transactions
27
27
are allowed to consume.
28
28
- `number`: (string) Hexadecimal block number.
29
-
- `prevRandao` (string) The previous value of randomness, which is
29
+
- `prevRandao`: (string) The previous value of randomness, which is
30
30
used as a source of randomness for various protocol operations.
31
31
- `time`: (string) Hexadecimal value representing the Unix epoch time in seconds.
32
32
- `stateOverrides`: _\[optional]_ Object to override account states:
@@ -37,7 +37,7 @@ assessing the `blockStateCalls` array of objects.
37
37
before executing the call.
38
38
- `stateDiff`: Object of key-value mappings to override individual slots in the account
39
39
storage before executing the call.
40
-
- `movePrecompileToAddress` (string) Moves the precompile to the supplied address.
40
+
- `movePrecompileToAddress`: (string) Moves the precompile to the supplied address.
41
41
- `calls`: _\[required]_ Array of transaction call objects:
42
42
- `from`: _\[optional]_ 20 bytes - The address the transaction is sent from.
43
43
- `to`: _\[optional]_ 20 bytes - The address the transaction is directed to.
@@ -53,7 +53,7 @@ assessing the `blockStateCalls` array of objects.
53
53
- `traceTransfers`: _\[optional]_ Boolean value which when `true`, adds ETH transfers as ERC20 transfer
54
54
events to the logs, allowing you to trace value transfers. The default is `false`.
55
55
- `validation`: _\[optional]_ Boolean value which when `true`, does all the validation that a
56
-
normal EVM would do, except contract sender and signature checks. When false, `eth_simulateV1` behaves like `eth_call`.
56
+
normal EVM would do, except contract sender and signature checks. When `false`, `eth_simulateV1` behaves like `eth_call`.
57
57
The default is `false`.
58
58
-`blockParameter`: (string) [_optional_] A hexadecimal block number, or one of the tags `latest`, `earliest`, `pending` or `finalized`. See the [default block parameter](https://ethereum.org/en/developers/docs/apis/json-rpc/#default-block).
59
59
@@ -100,10 +100,10 @@ An array of simulation result objects:
100
100
-`stateRoot`: The root of the final state trie of the block.
101
101
-`timestamp`: The unix timestamp for when the block was collated.
102
102
-`totalDifficulty`: A hexadecimal of the total difficulty of the chain until this block.
103
-
-`transactions`: [Array] An array of transaction objects, or 32 bytes transaction hashes depending on the last given parameter.
103
+
-`transactions`: (Array) An array of transaction objects, or 32 bytes transaction hashes depending on the last given parameter.
104
104
-`transactionsRoot`: The root of the transaction trie of the block.
105
-
-`uncles`: [Array] An array of uncle hashes.
106
-
-`withdrawals`: [Array] Withdrawal objects.
105
+
-`uncles`: (Array) An array of uncle hashes.
106
+
-`withdrawals`: (Array) Withdrawal objects.
107
107
-`withdrawalsRoot`: Withdrawals trie root.
108
108
109
109
## Example
@@ -124,39 +124,39 @@ Replace `<YOUR-API-KEY>` with an API key from your [MetaMask Developer dashboard
0 commit comments