github.com/lmittmann/w3@v0.20.0/docs/pages/rpc-methods/debug.mdx (about) 1 # `debug`-Namespace 2 3 List of supported RPC methods for `w3.Client` in the `debug`-namespace. 4 5 ## `debug_traceCall` 6 `TraceCall` requests the trace of the given message. 7 ```go {3} 8 var trace *debug.Trace 9 client.Call( 10 debug.TraceCall(msg, blockNumber, config).Returns(&trace), 11 ) 12 ``` 13 14 `CallTraceCall` requests the call trace of the given message. 15 ```go {3} 16 var trace *debug.CallTrace 17 client.Call( 18 debug.CallTraceCall(msg, blockNumber, overrides).Returns(&trace), 19 ) 20 ``` 21 22 ## `debug_traceTransaction` 23 `TraceTx` requests the trace of the transaction with the given hash. 24 TraceTx requests the trace of the transaction with the given hash. 25 ```go {3} 26 var trace *debug.Trace 27 client.Call( 28 debug.TraceTx(txHash, config).Returns(&trace), 29 ) 30 ``` 31 32 `CallTraceTx` requests the call trace of the transaction with the given hash. 33 ```go {3} 34 var trace *debug.CallTrace 35 client.Call( 36 debug.CallTraceTx(txHash, overrides).Returns(&trace), 37 ) 38 ```