docs: document state and block overrides for trace_call (#20217)

This commit is contained in:
Forostovec
2025-12-10 09:00:59 +02:00
committed by GitHub
parent cf7d709358
commit 21d61d40d1

View File

@@ -176,9 +176,13 @@ The second parameter is an array of one or more trace types (`vmTrace`, `trace`,
The third and optional parameter is a block number, block hash, or a block tag (`latest`, `finalized`, `safe`, `earliest`, `pending`).
| Client | Method invocation |
| ------ | -------------------------------------------------------------- |
| RPC | `{"method": "trace_call", "params": [tx, trace[], block]}` |
The fourth and optional parameter is a `stateOverrides` object that temporarily overrides account state used for the trace (balances, nonces, code, storage).
The fifth and optional parameter is a `blockOverrides` object that temporarily overrides block fields used for the trace (for example `timestamp`, `baseFee`, `number`).
| Client | Method invocation |
| ------ | ------------------------------------------------------------------------------------ |
| RPC | `{"method": "trace_call", "params": [tx, trace[], block, stateOverrides, blockOverrides]}` |
### Example