You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-`fromBlock(uint blockNumber)` - either block number (hex), earliest which is the genesis block or latest (default) best block available. Trace starting block
21
-
-`toBlock(uint blockNumber)` - either block number (hex), earliest which is the genesis block or latest best block available. Trace ending block
22
-
-`fromAddress(array addresses)` - filter transactions done from these addresses only. If an empty array is provided, no filtering is done with this field
23
-
-`toAddress(array addresses)` - filter transactions done from these addresses only. If an empty array is provided, no filtering is done with this field
24
-
-`after(uint offset)` - default offset is 0. Trace offset (or starting) number
25
-
-`count(uint numberOfTraces)` - number of traces to display in a batch
* This call will attempt to run the transaction in the exact same manner as it was executed on the network. It will replay any transaction that may have been executed prior to this one before it will finally attempt to execute the transaction that corresponds to the given hash.
18
+
* Optional params:
19
+
*`disableStorage(boolean)` - (default: false) setting this to true disables storage capture
20
+
*`disableMemory(boolean)` - (default: false) setting this to true disables memory capture
21
+
*`disableStack(boolean)` - (default: false) setting this to true disables stack capture
*`fromBlock(uint blockNumber)` - either block number (hex), earliest which is the genesis block or latest (default) best block available. Trace starting block
36
+
*`toBlock(uint blockNumber)` - either block number (hex), earliest which is the genesis block or latest best block available. Trace ending block
37
+
*`fromAddress(array addresses)` - filter transactions done from these addresses only. If an empty array is provided, no filtering is done with this field
38
+
*`toAddress(array addresses)` - filter transactions done from these addresses only. If an empty array is provided, no filtering is done with this field
39
+
*`after(uint offset)` - default offset is 0. Trace offset (or starting) number
40
+
*`count(uint numberOfTraces)` - number of traces to display in a batch
26
41
27
42
There are some default values that you should be aware of:
28
43
@@ -34,9 +49,7 @@ To change the default values you can add CLI flags when spinning up your tracing
34
49
## Run a Debugging Node
35
50
36
51
:::caution
37
-
38
52
EVM tracing features available from Astar 5.1 release.
39
-
40
53
:::
41
54
42
55
To use the supported RPC methods, you need to run a node in debug mode, which is slightly different than running a full node. Additional flags will also need to be used to tell the node which of the non-standard features to support.
@@ -52,25 +65,20 @@ Spinning up a debug or tracing node is similar to running a full node. However,
52
65
*`--ethapi-trace-cache-duration <uint>` - sets the duration (in seconds) after which the cache of `trace_filter`, for a given block, is discarded. _The default amount of time blocks are stored in the cache is **300** seconds_
53
66
54
67
:::info
55
-
56
-
EVM tracing node installation manual available on [this page](/docs/build/nodes/evm-tracing-node).
57
-
68
+
EVM tracing node installation manual available on [this page](/docs/build/nodes/evm-tracing-node).
58
69
:::
59
70
60
-
61
71
### Using the Debug/Tracing API
62
72
63
73
Once you have a running tracing node, you can open your terminal to run curl commands and start to call any of the available JSON RPC methods.
64
74
65
75
For example, for the `debug_traceTransaction` method, you can make the following JSON RPC request in your terminal:
66
76
67
77
:::caution
68
-
69
78
`--ethapi=debug` flag as tracing node argument required to expose this API.
@@ -84,7 +92,7 @@ The node responds with the step-by-step replayed transaction information.
84
92
85
93
For the `trace_filter` call, you can make the following JSON RPC request in your terminal (in this case, the filter is from block 20000 to 25000, only for transactions where the recipient is 0x4E0078423a39EfBC1F8B5104540aC2650a756577, it will start with a zero offset and provide the first 20 traces):
0 commit comments