docs: fixed traceTransaction with custom tracer example (#19512)
Fixed traceTransacion with custom tracer example.
This commit is contained in:
parent
06cb6ae975
commit
fa1bc98763
|
@ -787,7 +787,7 @@ Note that several values are Golang big.Int objects, not JavaScript numbers or J
|
|||
|
||||
Usage example, returns the top element of the stack at each CALL opcode only:
|
||||
|
||||
debug.traceTransaction(txhash, {tracer: '{data: [], step: function(log) { if(log.op.toString() == "CALL") this.data.push(log.stack.peek(0)); }, result: function() { return this.data; }}'});
|
||||
debug.traceTransaction(txhash, {tracer: '{data: [], fault: function(log) {}, step: function(log) { if(log.op.toString() == "CALL") this.data.push(log.stack.peek(0)); }, result: function() { return this.data; }}'});
|
||||
|
||||
### debug_verbosity
|
||||
|
||||
|
@ -1329,4 +1329,4 @@ the number of transactions in that particular state.
|
|||
pending: 10,
|
||||
queued: 7
|
||||
}
|
||||
```
|
||||
```
|
||||
|
|
Loading…
Reference in New Issue