Skip to content

Commit a5f90c6

Browse files
authored
[website] renaming debug getters (#26849)
Updates documentation according to changes made in #25176
1 parent 0059701 commit a5f90c6

File tree

1 file changed

+17
-8
lines changed

1 file changed

+17
-8
lines changed

docs/interacting-with-geth/rpc/ns-debug.md

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ If `incompletes` is false, then accounts for which the key preimage (i.e: the `a
1414
| Client | Method invocation |
1515
| :------ | ---------------------------------------------------------------------------------------------------------------- |
1616
| Console | `debug.accountRange(blockNrOrHash, start, maxResults, nocode, nostorage, incompletes)` |
17-
| RPC | `{"method": "debug_getHeaderRlp", "params": [blockNrOrHash, start, maxResults, nocode, nostorage, incompletes]}` |
17+
| RPC | `{"method": "debug_accountRange", "params": [blockNrOrHash, start, maxResults, nocode, nostorage, incompletes]}` |
1818

1919
### debug_backtraceAt
2020

@@ -189,26 +189,35 @@ Returns a list of the last 'bad blocks' that the client has seen on the network
189189
| Console | `debug.getBadBlocks()` |
190190
| RPC | `{"method": "debug_getBadBlocks", "params": []}` |
191191

192-
### debug_getBlockRlp
192+
### debug_getRawBlock
193193

194194
Retrieves and returns the RLP encoded block by number.
195195

196196
| Client | Method invocation |
197197
| :------ | ----------------------------------------------------- |
198-
| Go | `debug.GetBlockRlp(number uint64) (string, error)` |
199-
| Console | `debug.getBlockRlp(number, [options])` |
200-
| RPC | `{"method": "debug_getBlockRlp", "params": [number]}` |
198+
| Go | `debug.getRawBlock(blockNrOrHash) (string, error)` |
199+
| Console | `debug.getBlockRlp(blockNrOrHash)` |
200+
| RPC | `{"method": "debug_getRawBlock", "params": [blockNrOrHash]}` |
201201

202202
References: [RLP](https://ethereum.org/en/developers/docs/data-structures-and-encoding/rlp/)
203203

204-
### debug_getHeaderRlp
204+
### debug_getRawHeader
205205

206206
Returns an RLP-encoded header.
207207

208208
| Client | Method invocation |
209209
| :------ | --------------------------------------------------- |
210-
| Console | `debug.getHeaderRlp(blockNum)` |
211-
| RPC | `{"method": "debug_getHeaderRlp", "params": [num]}` |
210+
| Console | `debug.getRawHeader(blockNrOrHash)` |
211+
| RPC | `{"method": "debug_getRawHeader", "params": [blockNrOrHash]}` |
212+
213+
### debug_getRawTransaction
214+
215+
Returns the bytes of the transaction.
216+
217+
| Client | Method invocation |
218+
| :------ | --------------------------------------------------- |
219+
| Console | `debug.getRawTransaction(blockNrOrHash)` |
220+
| RPC | `{"method": "debug_getRawTransaction", "params": [transactionHash]}` |
212221

213222
### debug_getModifiedAccountsByHash
214223

0 commit comments

Comments
 (0)