Signed-off-by: jsvisa <delweng@gmail.com>
This commit is contained in:
jsvisa 2024-12-14 10:12:30 +08:00
parent 543a8566de
commit cc07116c4a
No known key found for this signature in database
GPG key ID: 06611D50DEB243B6

View file

@ -59,43 +59,35 @@ Return:
```terminal ```terminal
{ {
"gas":25523, "gas": 25523,
"failed":false, "failed": false,
"returnValue":"", "returnValue": "",
"structLogs":[ "structLogs": [
{ {
"pc":0, "pc": 0,
"op":"PUSH1", "op": "PUSH1",
"gas":64580, "gas": 64580,
"gasCost":3, "gasCost": 3,
"depth":1, "depth": 1,
"error":null, "error": null,
"stack":[ "stack": [ ... ],
"memory": null,
], "storage": { ... }
"memory":null,
"storage":{
}
}, },
{ {
"pc":2, "pc": 2,
"op":"PUSH1", "op": "PUSH1",
"gas":64577, "gas": 64577,
"gasCost":3, "gasCost": 3,
"depth":1, "depth": 1,
"error":null, "error": null,
"stack":[ "stack": [
"0000000000000000000000000000000000000000000000000000000000000060" "0000000000000000000000000000000000000000000000000000000000000060"
], ],
"memory":null, "memory": null,
"storage":{ "storage": { ... }
}
}, },
... ...
``` ```
## Native tracers {#native-tracers} ## Native tracers {#native-tracers}
@ -112,7 +104,7 @@ The `4byteTracer` collects the function selectors of every function executed in
Example call: Example call:
```sh ```sh
debug.traceTransaction( "0x214e597e35da083692f5386141e69f47e973b2c56e7a8073b1ea08fd7571e9de", {tracer: "4byteTracer"}) debug.traceTransaction("0x214e597e35da083692f5386141e69f47e973b2c56e7a8073b1ea08fd7571e9de", {tracer: "4byteTracer"})
``` ```
Return: Return: