debug_traceTransaction

Parameters

  • transactionHash-string The transaction hash that needs to be traced, encoded in hexadecimal format
  • tracer-object(optional) see tracer

Returns

  • type - The type of the call
  • from - The address the transaction is sent from
  • to - The address the transaction is directed to
  • value - The integer of the value sent with this transaction
  • gas - The integer of the gas provided for the transaction execution
  • gasUsed - The integer of the gas used
  • input - The data given at the time of input
  • output - The data which is returned as an output
  • error - The type of error, if any
  • revertReason - The type solidity revert reason, if any
  • calls - A list of sub-calls

Example

Request

curl --location 'https://scroll-alpha.unifra.io/v1/{your-api-key}' \
--header 'Content-Type: application/json' \
--data '{
    "method": "debug_traceTransaction",
    "params": [
        "0x94a406143369fbf66356558d364edad8be19ce47838f6d13905da47c80aeee83",
        {
            "tracer": "callTracer",
            "tracerConfig": {
                "onlyTopCall": false,
                "withLog": true
            }
        }
    ],
    "id": 1
}'

Response

{
    "jsonrpc": "2.0",
    "id": 1,
    "result": {
        "type": "CALL",
        "from": "0xe84118e2b5c74f9610377e86c840ac70f8ca925d",
        "to": "0xd9880690bd717189cc3fbe7b9020f27fae7ac76f",
        "value": "0xb1a2bc2ec50000",
        "gas": "0x226dc",
        "gasUsed": "0x20b84",
        "input": "0x5ae401dc00000000000000000000000000000000000000000000000000000000643925d800000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000e404e45aaf000000000000000000000000a1ea0b2354f5a344110af2b6ad68e75545009a03000000000000000000000000a0d71b9877f44c744546d649147e3f1e70a9376000000000000000000000000000000000000000000000000000000000000001f4000000000000000000000000e84118e2b5c74f9610377e86c840ac70f8ca925d00000000000000000000000000000000000000000000000000b1a2bc2ec500000000000000000000000000000000000000000000000008b76dd55b0c2f4f5113000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
        "output": "0x00000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000008b9280b851e825573cb",
        "calls": [
            {
                "type": "DELEGATECALL",
                "from": "0xd9880690bd717189cc3fbe7b9020f27fae7ac76f",
                "to": "0xd9880690bd717189cc3fbe7b9020f27fae7ac76f",
                "gas": "0x21939",
                "gasUsed": "0x20302",
                "input": "0x04e45aaf000000000000000000000000a1ea0b2354f5a344110af2b6ad68e75545009a03000000000000000000000000a0d71b9877f44c744546d649147e3f1e70a9376000000000000000000000000000000000000000000000000000000000000001f4000000000000000000000000e84118e2b5c74f9610377e86c840ac70f8ca925d00000000000000000000000000000000000000000000000000b1a2bc2ec500000000000000000000000000000000000000000000000008b76dd55b0c2f4f51130000000000000000000000000000000000000000000000000000000000000000",
                "output": "0x0000000000000000000000000000000000000000000008b9280b851e825573cb",
                "calls": [
                    {
                        "type": "CALL",
                        "from": "0xd9880690bd717189cc3fbe7b9020f27fae7ac76f",
                        "to": "0xad19c095040bcc41c965d85cc066779eb48ce9ad",
                        "value": "0x0",
                        "gas": "0x1f5d6",
                        "gasUsed": "0x1e601",
                        "input": "0x128acb08000000000000000000000000e84118e2b5c74f9610377e86c840ac70f8ca925d000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000b1a2bc2ec50000000000000000000000000000fffd8963efd1fc6a506488495d951d5263988d2500000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000040000000000000000000000000e84118e2b5c74f9610377e86c840ac70f8ca925d000000000000000000000000000000000000000000000000000000000000002ba1ea0b2354f5a344110af2b6ad68e75545009a030001f4a0d71b9877f44c744546d649147e3f1e70a93760000000000000000000000000000000000000000000",
                        "output": "0xfffffffffffffffffffffffffffffffffffffffffffff746d7f47ae17daa8c3500000000000000000000000000000000000000000000000000b1a2bc2ec50000",
                        "calls": [
                            {
                                "type": "CALL",
                                "from": "0xad19c095040bcc41c965d85cc066779eb48ce9ad",
                                "to": "0xa0d71b9877f44c744546d649147e3f1e70a93760",
                                "value": "0x0",
                                "gas": "0x1080d",
                                "gasUsed": "0x3171",
                                "input": "0xa9059cbb000000000000000000000000e84118e2b5c74f9610377e86c840ac70f8ca925d0000000000000000000000000000000000000000000008b9280b851e825573cb",
                                "output": "0x0000000000000000000000000000000000000000000000000000000000000001"
                            },
                            {
                                "type": "STATICCALL",
                                "from": "0xad19c095040bcc41c965d85cc066779eb48ce9ad",
                                "to": "0xa1ea0b2354f5a344110af2b6ad68e75545009a03",
                                "gas": "0xca5e",
                                "gasUsed": "0x9ed",
                                "input": "0x70a08231000000000000000000000000ad19c095040bcc41c965d85cc066779eb48ce9ad",
                                "output": "0x000000000000000000000000000000000000000000000022d01073cb7c828937"
                            },
                            {
                                "type": "CALL",
                                "from": "0xad19c095040bcc41c965d85cc066779eb48ce9ad",
                                "to": "0xd9880690bd717189cc3fbe7b9020f27fae7ac76f",
                                "value": "0x0",
                                "gas": "0xbd83",
                                "gasUsed": "0x9da3",
                                "input": "0xfa461e33fffffffffffffffffffffffffffffffffffffffffffff746d7f47ae17daa8c3500000000000000000000000000000000000000000000000000b1a2bc2ec50000000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000040000000000000000000000000e84118e2b5c74f9610377e86c840ac70f8ca925d000000000000000000000000000000000000000000000000000000000000002ba1ea0b2354f5a344110af2b6ad68e75545009a030001f4a0d71b9877f44c744546d649147e3f1e70a93760000000000000000000000000000000000000000000",
                                "output": "0x",
                                "calls": [
                                    {
                                        "type": "CALL",
                                        "from": "0xd9880690bd717189cc3fbe7b9020f27fae7ac76f",
                                        "to": "0xa1ea0b2354f5a344110af2b6ad68e75545009a03",
                                        "value": "0xb1a2bc2ec50000",
                                        "gas": "0x9456",
                                        "gasUsed": "0x5d20",
                                        "input": "0xd0e30db0",
                                        "output": "0x"
                                    },
                                    {
                                        "type": "CALL",
                                        "from": "0xd9880690bd717189cc3fbe7b9020f27fae7ac76f",
                                        "to": "0xa1ea0b2354f5a344110af2b6ad68e75545009a03",
                                        "value": "0x0",
                                        "gas": "0x3705",
                                        "gasUsed": "0x1776",
                                        "input": "0xa9059cbb000000000000000000000000ad19c095040bcc41c965d85cc066779eb48ce9ad00000000000000000000000000000000000000000000000000b1a2bc2ec50000",
                                        "output": "0x0000000000000000000000000000000000000000000000000000000000000001"
                                    }
                                ]
                            },
                            {
                                "type": "STATICCALL",
                                "from": "0xad19c095040bcc41c965d85cc066779eb48ce9ad",
                                "to": "0xa1ea0b2354f5a344110af2b6ad68e75545009a03",
                                "gas": "0x1fdf",
                                "gasUsed": "0x21d",
                                "input": "0x70a08231000000000000000000000000ad19c095040bcc41c965d85cc066779eb48ce9ad",
                                "output": "0x000000000000000000000000000000000000000000000022d0c21687ab478937"
                            }
                        ]
                    }
                ]
            }
        ]
    }
}
Language
Click Try It! to start a request and see the response here!