Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

debug_traceBlockByNumber return is not compatible to geth #647

Open
s7v7nislands opened this issue Dec 12, 2024 · 2 comments · May be fixed by #648
Open

debug_traceBlockByNumber return is not compatible to geth #647

s7v7nislands opened this issue Dec 12, 2024 · 2 comments · May be fixed by #648

Comments

@s7v7nislands
Copy link
Contributor

System information

Geth version: geth version
OS & Version: Windows/Linux/OSX
Commit hash : (if develop)

Expected behaviour

transactionHash should be txHash

curl --location 'https://xxxx' \
--header 'Content-Type: application/json' \
--data '[{
	"jsonrpc":"2.0",
	"method":"debug_traceBlockByNumber",
	"params":[
		"0x26d292f",
        {
            "tracer": "callTracer"
        }
	],
	"id":1
}]'

[
    {
        "jsonrpc": "2.0",
        "id": 1,
        "result": [
            {
                "txHash": "0x6c4df6dd68b9ab506494fb4525b86ff49f7371a2b16cbf217caca86bf02b06cf",
                "result": {
                    "from": "0x5ea0cebf694288d13a70e43ecc6df902c5b451db",
                    "gas": "0x7a120",
                    "gasUsed": "0x5721a",
                    "to": "0xfff9ce5f71ca6178d3beecedb61e7eff1602950e",
...

Actual behaviour

curl --location 'https://xxxx' \
--header 'Content-Type: application/json' \
--data '[{
	"jsonrpc":"2.0",
	"method":"debug_traceBlockByNumber",
	"params":[
		"0x26d292f",
        {
            "tracer": "callTracer"
        }
	],
	"id":1
}]'

[
    {
        "jsonrpc": "2.0",
        "id": 1,
        "result": [
            {
                "transactionHash": "0x6c4df6dd68b9ab506494fb4525b86ff49f7371a2b16cbf217caca86bf02b06cf",
                "result": {
                    "from": "0x5ea0cebf694288d13a70e43ecc6df902c5b451db",
                    "gas": "0x7a120",
                    "gasUsed": "0x5721a",
                    "to": "0xfff9ce5f71ca6178d3beecedb61e7eff1602950e",
...

Steps to reproduce the behaviour

Backtrace

[backtrace]

When submitting logs: please submit them as text and not screenshots.

@minh-bq
Copy link
Contributor

minh-bq commented Dec 12, 2024

Thanks for your report.

I just want to know more about your use case. Do you use any libraries to use this method and this bug makes the library fail to parse the response?

@s7v7nislands
Copy link
Contributor Author

I will parse the traces and get the internal transactions like in ethscan internal transactoins. We support many evm compatible chains, and they return txHash in response.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants