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