Appearance
State override
Changes to accounts that apply before a call runs. The chain does not change.
The object maps an address to the changes for that account. The calls (eth_call, eth_estimateGas, eth_createAccessList, eth_callMany, eth_simulateV1, debug_traceCall, trace_call) accept it.
Fields
| Field | Type | Meaning |
|---|---|---|
balance | hex number, wei | The new balance. |
nonce | hex number | The new nonce. |
code | hex data | The new code. Use it to put a contract at an address for the call. |
state | object: slot to 32-byte value | The full storage. All other slots become zero. |
stateDiff | object: slot to 32-byte value | Changes to these slots only. The other slots keep their values. |
movePrecompileToAddress | address | eth_simulateV1 only: for that block, the precompile at this account runs at the given address. The account is then a normal account. The other methods accept the field with no effect, as in reth. |
Notes
- An account with both
stateandstateDiffgives -32602. - In
eth_simulateV1, a move of an account that is not a precompile gives -32000account 0x... is not a precompile. A move to the same address gives -38022. - When two moves in
eth_simulateV1have the same target, the first move in the request runs there. The order of reth is not specified for this case (issue #120). - An unknown field gives -32602
Invalid params, with the text of reth indata.
Used by
eth_call, eth_callMany, eth_createAccessList, eth_estimateGas, trace_call.