Website docs update examples (#28289)

* docs: fix params for debug_stacks
* docs: fix typo on debug_stopGoTrace example
* docs: remove debug_seedHash example

Fixes issue #28282
Fixes issue #28288
Fixes issue #28281
pull/28341/head
hyunchel 1 year ago committed by GitHub
parent b3a2e3e950
commit 1bf76f3902
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 18
      docs/interacting-with-geth/rpc/ns-debug.md

@ -305,16 +305,6 @@ Retrieves a block and returns its pretty printed form.
| Console | `debug.printBlock(number uint64)` |
| RPC | `{"method": "debug_printBlock", "params": [number]}` |
### debug_seedHash
Fetches and retrieves the seed hash of the block by number
| Client | Method invocation |
| :------ | -------------------------------------------------- |
| Go | `debug.SeedHash(number uint64) (string, error)` |
| Console | `debug.seedHash(number, [options])` |
| RPC | `{"method": "debug_seedHash", "params": [number]}` |
### debug_setBlockProfileRate
Sets the rate (in samples/sec) of goroutine block profile data collection. A non-zero rate enables block profiling, setting it to zero stops the profile. Collected profile data can be written using `debug_writeBlockProfile`.
@ -374,8 +364,8 @@ Returns a printed representation of the stacks of all goroutines. Note that the
| Client | Method invocation |
| :------ | ------------------------------------------ |
| Console | `debug.stacks()` |
| RPC | `{"method": "debug_stacks", "params": []}` |
| Console | `debug.stacks(filter *string)` |
| RPC | `{"method": "debug_stacks", "params": [filter]}` |
### debug_standardTraceBlockToFile
@ -465,8 +455,8 @@ Stops writing the Go runtime trace.
| Client | Method invocation |
| :------ | ----------------------------------------------- |
| Console | `debug.startGoTrace(file)` |
| RPC | `{"method": "debug_stopGoTrace", "params": []}` |
| Console | `debug.stopGoTrace(file)` |
| RPC | `{"method": "debug_stopGoTrace", "params": [string]}` |
### debug_storageRangeAt

Loading…
Cancel
Save