Skip to content

Commit 1d389cf

Browse files
authored
docs(jsonrpc): add missing debug namespace RPC methods (#20258)
1 parent 2e62387 commit 1d389cf

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

docs/vocs/docs/pages/jsonrpc/debug.mdx

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,14 @@ Returns an EIP-2718 binary-encoded transaction.
2929
| ------ | ------------------------------------------------------------ |
3030
| RPC | `{"method": "debug_getRawTransaction", "params": [tx_hash]}` |
3131

32+
## `debug_getRawTransactions`
33+
34+
Returns an array of EIP-2718 binary-encoded transactions for the given block.
35+
36+
| Client | Method invocation |
37+
| ------ | -------------------------------------------------------------- |
38+
| RPC | `{"method": "debug_getRawTransactions", "params": [block]}` |
39+
3240
## `debug_getRawReceipts`
3341

3442
Returns an array of EIP-2718 binary-encoded receipts.
@@ -102,3 +110,31 @@ The block can optionally be specified either by hash or by number as the second
102110
| Client | Method invocation |
103111
| ------ | --------------------------------------------------------------------- |
104112
| RPC | `{"method": "debug_traceCall", "params": [call, block_number, opts]}` |
113+
114+
## `debug_traceCallMany`
115+
116+
The `debug_traceCallMany` method lets you run multiple `eth_call`s within the context of the given block execution using the final state of the parent block as the base, followed by n transactions.
117+
118+
The first argument is a list of bundles. Each bundle can overwrite the block headers, which will affect all transactions in that bundle. The trace can be configured similar to `debug_traceTransaction`.
119+
120+
This method returns nested lists of traces, where the outer list length is the number of bundles and the inner list length is the number of transactions in each bundle.
121+
122+
| Client | Method invocation |
123+
| ------ | ---------------------------------------------------------------------------------- |
124+
| RPC | `{"method": "debug_traceCallMany", "params": [bundles, state_context, opts]}` |
125+
126+
## `debug_executionWitness`
127+
128+
Allows for re-execution of a block with the purpose of generating an execution witness. The witness comprises a map of all hashed trie nodes to their preimages that were required during the execution of the block, including during state root recomputation.
129+
130+
| Client | Method invocation |
131+
| ------ | ------------------------------------------------------------ |
132+
| RPC | `{"method": "debug_executionWitness", "params": [block]}` |
133+
134+
## `debug_executionWitnessByBlockHash`
135+
136+
Similar to [`debug_executionWitness`](#debug_executionwitness), but accepts a block hash instead of a block number or tag.
137+
138+
| Client | Method invocation |
139+
| ------ | ---------------------------------------------------------------------- |
140+
| RPC | `{"method": "debug_executionWitnessByBlockHash", "params": [hash]}` |

0 commit comments

Comments
 (0)