forked from ethereum/go-ethereum
-
Notifications
You must be signed in to change notification settings - Fork 66
Open
Description
Same problem is observed for debug_traceBlockByHash
as well.
Complete example of a traces from a public XDC node:
curl https://xdc-mainnet.gateway.tatum.io -X POST -H "Content-Type: application/json" --data '{"method":"debug_traceTransaction","params":["0x8e28fefecd3eefde81786b1d96d541bc976df7ecf8b8e86e13f62a0925a581ff", {"tracer": "callTracer"}], "id":1,"jsonrpc":"2.0"}' | jq
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 399 0 234 100 165 958 676 --:--:-- --:--:-- --:--:-- 1628
{
"id": 1,
"jsonrpc": "2.0",
"result": {
"type": "CALL",
"from": "0xde3fee1d954290f9f396ea1828667ad4a3461449",
"to": "0x010a532191ad3acb94e725d43b8682ea1b29e969",
"value": "0x16345785d8a0000",
"gas": "0x0",
"gasUsed": "0x0",
"input": "0x",
"output": "0x"
}
}
Only happens for “normal” transfers, for TXs with “real” inner transaction the gas and gasfees are present on the trace endpoint:
curl https://xdc-mainnet.gateway.tatum.io -X POST -H "Content-Type: application/json" --data '{"method":"debug_traceTransaction","params":["0x883ce67959ddbbe46f21d952c15cbf77bd9ce38ea51dda2faea1d54c9de8b416", {"tracer": "callTracer"}], "id":1,"jsonrpc":"2.0"}' | jq
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 1448 0 1283 100 165 7282 936 --:--:-- --:--:-- --:--:-- 8227
{
"id": 1,
"jsonrpc": "2.0",
"result": {
"type": "CALL",
"from": "0x1ef33cebe891178f67fc8f4270a07940a333ca3a",
"to": "0x6dcea39e68b2f4a3741ab1bac831d692fc1cf8b1",
"value": "0x0",
"gas": "0x68ab8",
"gasUsed": "0x5693",
"input": "0x70c10578",
"output": "0x",
"calls": [
{
"type": "STATICCALL",
"from": "0x6dcea39e68b2f4a3741ab1bac831d692fc1cf8b1",
"to": "0x32ee17a37bf65b067e0a10621430b5444661f0dd",
"gas": "0x65c7a",
"gasUsed": "0x3cac",
"input": "0xf0bb5890",
"output": "0x0000000000000000000000000000000000000000000000000000000000000000",
"calls": [
{
"type": "STATICCALL",
"from": "0x32ee17a37bf65b067e0a10621430b5444661f0dd",
"to": "0xe3009e01a88323b6cbaa13367202c909cc825c69",
"gas": "0x635a1",
"gasUsed": "0x4c1",
"input": "0x0902f1ac",
"output": "0x00000000000000000000000000000000000000000000248cb488cb09a20c5cf80000000000000000000000000000000000000000000099e2495425ed59fd8c4c0000000000000000000000000000000000000000000000000000000068ee4bb2"
},
{
"type": "STATICCALL",
"from": "0x32ee17a37bf65b067e0a10621430b5444661f0dd",
"to": "0xa604a16c50c075259f53deff19884d2de73126c8",
"gas": "0x621d3",
"gasUsed": "0x4c1",
"input": "0x0902f1ac",
"output": "0x0000000000000000000000000000000000000000000002769590905fbd5907aa000000000000000000000000000000000000000000000a5397998c825dc144810000000000000000000000000000000000000000000000000000000068ee4bb2"
}
]
}
]
}
}
For ETH nodes the trace call do return GAS as expected:
curl https://ethereum-public.nodies.app -X POST -H "Content-Type: application/json" --data '{"method":"debug_traceTransaction","params":["0x964ac4234b72354b01308460e021c29c13c08f8238862e42cdbd71a782575b44", {"tracer": "callTracer"}], "id":1,"jsonrpc":"2.0"}' | jq
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 389 0 224 100 165 138 102 0:00:01 0:00:01 --:--:-- 240
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"from": "0x2a66c35ca79ccdf7473d931eb03090a54c1471fd",
"gas": "0x5208",
"gasUsed": "0x5208",
"to": "0x18bf8631c5379f1c208e483caa9b2a33e071979f",
"input": "0x",
"value": "0x7d0e36a818000",
"type": "CALL"
}
}
Metadata
Metadata
Assignees
Labels
No labels