Skip to content

Commit

Permalink
Add state support.
Browse files Browse the repository at this point in the history
Signed-off-by: bgravenorst <[email protected]>
  • Loading branch information
bgravenorst committed Feb 11, 2025
1 parent 1997a0e commit 67a35a6
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions docs/public-networks/reference/api/objects.md
Original file line number Diff line number Diff line change
Expand Up @@ -143,14 +143,15 @@ Override an account with the following state values temporarily before making th
to make ephemeral state changes, for the purposes of transaction simulation, without affecting the actual
blockchain state.

| Key | Type | Value |
|---------------------------|:-------------------:|------------------------------------------------------------------------|
| `balance` | Quantity | Temporary account balance for the call execution. |
| `nonce` | Quantity | Temporary nonce value for the call execution. |
| `code` | Binary | Bytecode to inject into the account. |
| `movePrecompileToAddress` | Data, 20&nbsp;bytes | Address to which the precompile address should be moved. |
| `state` | Quantity | `key:value` pairs to override all slots in the account storage. |
| `stateDiff` | Quantity | `key:value` pairs to override individual slots in the account storage. |

| Key | Type | Value |
|---------------------------|:-------------------:|--------------------------------------------------------------------------------------------------------------------------------------------|
| `balance` | Quantity | Temporary account balance for the call execution. |
| `nonce` | Quantity | Temporary nonce value for the call execution. |
| `code` | Binary | Bytecode to inject into the account. |
| `movePrecompileToAddress` | Data, 20&nbsp;bytes | Address to which the precompile address should be moved. |
| `state` | Quantity | `key:value` pairs to override all slots in the account storage. You cannot set both the `state` and `stateDiff` options simultaneously. |
| `stateDiff` | Quantity | `key:value` pairs to override individual slots in the account storage. You cannot set both the `state` and `stateDiff` options simultaneously. |

## Structured log object

Expand Down

0 comments on commit 67a35a6

Please sign in to comment.