Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

Commit

Permalink
docs: add documentation of eth_call overrides (#3007)
Browse files Browse the repository at this point in the history
* add overrides documentation to RPC-METHODS.md

* additional overrides docs

* Reformat `eth_call` overrides documentation

* add back astersik

Co-authored-by: David Murdoch <187813+davidmurdoch@users.noreply.github.com>

Co-authored-by: David Murdoch <187813+davidmurdoch@users.noreply.github.com>
  • Loading branch information
MicaiahReid and davidmurdoch authored May 2, 2022
1 parent 9bc9aa1 commit 58376ad
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/chains/ethereum/ethereum/RPC-METHODS.md
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,16 @@ Executes a new message call immediately without creating a transaction on the bl

- `transaction: any` : The transaction call object as seen in source.
- `blockNumber: QUANTITY | TAG` : Integer block number, or the string "latest", "earliest" or "pending".
- `overrides: CallOverrides`: State overrides to apply during the simulation.
- `CallOverrides` - An address-to-state mapping, where each entry specifies some
state to be ephemerally overridden prior to executing the call. Each address maps to an object containing:
- `balance: QUANTITY` (optional) - The balance to set for the account before executing the call.
- `nonce: QUANTITY` (optional) - The nonce to set for the account before executing the call.
- `code: DATA` (optional) - The EVM bytecode to set for the account before executing the call.
- `state: OBJECT` (optional\*) - Key-value mapping to override _all_ slots in the account storage before executing the call.
- `stateDiff: OBJECT` (optional\*) - Key-value mapping to override _individual_ slots in the account storage before executing the call.

_\*Note - `state` and `stateDiff` fields are mutually exclusive._

##### Returns

Expand Down

0 comments on commit 58376ad

Please sign in to comment.