VM Standard Tracing
Last updated
Was this helpful?
Last updated
Was this helpful?
Similar to , standardTraceBadBlockToFile
accepts a bad block hash and will replay the bad block. It returns a list of file names containing tracing result. Note that the files will be stored in the machine that serves this API.
Client
Method Invocation
Console
debug.standardTraceBadBlockToFile(hash, [options])
RPC
{"method": "debug_standardTraceBadBlockToFile", "params": [hash, {}]}
Parameters
Name
Type
Description
hash
32-byte DATA
Hash of a block.
options
object
Return Value
Type
Description
JSON array
A list of file names. Each represents a tracing result of a transaction. The format of a file name is block_{first 4 bytes of the block hash}-{transaction index}-{first 4 bytes of the transaction hash}-{random string}
.
Example
Console
HTTP RPC
Client
Method Invocation
Console
debug.standardTraceBlockToFile(hash, [options])
RPC
{"method": "debug_standardTraceBlockToFile", "params": [hash, {}]}
Parameters
Name
Type
Description
hash
32-byte DATA
Hash of a block.
options
object
Return Value
Type
Description
JSON array
A list of file names. Each represents a tracing result of a transaction. The format of a file name is block_{first 4 bytes of the block hash}-{transaction index}-{first 4 bytes of the transaction hash}-{random string}
.
Example
Console
HTTP RPC
You may give trace API function a secondary optional argument, which specifies the options for this specific call. The possible options are:
disableStorage
: BOOL
. Setting this to true will disable storage capture (default = false).
disableMemory
: BOOL
. Setting this to true will disable memory capture (default = false).
disableStack
: BOOL
. Setting this to true will disable stack capture (default = false).
txHash
: string
. Setting this value will trace only the specified transaction.
See .
Similar to , standardTraceBlockToFile
accepts a block hash and will replay the block that is already present in the database. It returns a list of file names containing tracing result. Note that the files will be stored in the machine that serves this API.
See .