trace_replayTransaction

Replays a transaction, returning the traces.

Parameters

  1. Transaction Hash.

  2. Type of trace - choose 1 of the following options:

    • "trace" - Provides an ordered trace of the instructions.

    • "stateDiff" - Provides information detailing all altered portions of the Ethereum state made due to the execution of the transaction.

    • "vmTrace" - Provides a full trace of the VM’s state throughout the execution of the transaction, including for any subcalls.

Sample Request

curl https://lb.nodies.app/v1/<INSERT URL> \
   -H "x-api-key: <API-KEY>" \
   -X POST \
   -H "Content-Type: application/json" \
   -d '{ 
  "jsonrpc": "2.0",
  "method": "trace_replayTransaction",
  "params": [
    "0x5abaee40b926126c06046166d983bd1cbafc62f11dcac82a626beec93e356694",
    ["stateDiff"]
  ],
  "id": 1
}'

Sample Response

{
    "jsonrpc": "2.0",
    "id": 1,
    "result": {
        "output": "0x00000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000012c6a2a57082e260000000000000000000000000000000000000000000000000000000000000000",
        "stateDiff": {
            "0x197675feac8ae2a66388329d4fc9d3d2aabc4208": {
                "balance": {
                    "*": {
                        "from": "0x1d74cd0eb5325d25",
                        "to": "0x1e92348fa67bc437"
                    }
                },
                "code": "=",
                "nonce": {
                    "*": {
                        "from": "0x163",
                        "to": "0x164"
                    }
                },
                "storage": {}
            },
            "0x29685de587ba6fcb8b0b4e1bddb093fba5eae322": {
                "balance": "=",
                "code": "=",
                "nonce": "=",
                "storage": {
                    "0x77b31cdce514fb3ef61b667d15498e36c0cc62b4c8a6f3821452ecb39d63238b": {
                        "*": {
                            "from": "0x03d70a3d70a3d70a3d70a3d70a3d70a3d70a3d70a3d70a3d7084b7c22a518000",
                            "to": "0x028f5c28f5c28f5c28f5c28f5c28f5c28f5c28f5c28f5c28f5adcfd6c6e10000"
                        }
                    },
                    "0x9fa544639f197637ec634bd9466ac03f025f3d869c86c476a646bb156882ab64": {
                        "*": {
                            "from": "0xffffffffffffffffffffffffffffffffffffffffffffffffffc9b87e4714f4e3",
                            "to": "0xffffffffffffffffffffffffffffffffffffffffffffffffffb7f5050f3474e3"
                        }
                    },
                    "0xa099030718c11a94faf4ce0a83c7fd129a45c95bab366dd02afbc4da63947a9a": {
                        "*": {
                            "from": "0x55f84a0f5cc0ef5a7b1d74b79f765025158f02377ca22ecf5d851fc3df34c095",
                            "to": "0x5787d49de2ccf663aafed7db047ddc1f22f62b9f0e238a3cdaf2db9d57509a40"
                        }
                    },
                    "0xcdc07d4d76ed47618b8c9c19a709bcea70af73ec190c95b012e745b43503a949": {
                        "*": {
                            "from": "0x0051b10f2355588bd9746f0443da14c87da224e62280f291f1cb5ae338eeb9ab",
                            "to": "0x0009d495182a9930be0ded288ce703afb7e90ff972474538ef3486f524436000"
                        }
                    }
                }
            },
            "0x9c90bb7ebd7800f4e4f24e45f5287102f684b560": {
                "balance": {
                    "*": {
                        "from": "0x3b89888d7d56834",
                        "to": "x3b8a81026e50874"
                    }
                },
                "code": "=",
                "nonce": "=",
                "storage": {}
            },
            "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2": {
                "balance": {
                    "*": {
                        "from": "0x31b045cd3eca6ef8cfbb7",
                        "to": "0x31b045b58e69669e2fb16"
                    }
                },
                "code": "=",
                "nonce": "=",
                "storage": {
                    "0xc05c20c8358947cc41351aee5a41f6d18738cfa44aec6671134ef2248af1c979": {
                        "*": {
                            "from": "0x00000000000000000000000000000000000000000000000053482251cdeeb08e",
                            "to": "0x00000000000000000000000000000000000000000000000051cd1c414844afed"
                        }
                    }
                }
            },
            "0xdc706fb0b56cf0c8ca9595bca6aa363fcee4b4d1": {
                "balance": "=",
                "code": "=",
                "nonce": "=",
                "storage": {
                    "0x0000000000000000000000000000000000000000000000000000000000000008": {
                        "*": {
                            "from": "0x63bfa1df00000000000053482251cdeeb08e00000000000004a9125e6ea036f5",
                            "to": "0x63bfa1f700000000000051cd1c414844afed00000000000004bebb1e0d089240"
                        }
                    },
                    "0x0000000000000000000000000000000000000000000000000000000000000009": {
                        "*": {
                            "from": "0x00000000000000000000000000000000b0a7fc33a74c1445ac639999133f0628",
                            "to": "0x00000000000000000000000000000000b254dd2ea4725905457784badf7f6b38"
                        }
                    },
                    "0x000000000000000000000000000000000000000000000000000000000000000a": {
                        "*": {
                            "from": "0x0000000000000000000000000000000001befd52161e1dc5d996009f587eeb3c",
                            "to": "0x0000000000000000000000000000000001c05523569b443eab42ed454c6b63fc"
                        }
                    }
                }
            },
            "0xeb11b66bcc862a07deca7918d87cd0c2be4175a2": {
                "balance": {
                    "*": {
                        "from": "0xe9c3b778b3aa144",
                        "to": "0xeead75db9dc73bf"
                    }
                },
                "code": "=",
                "nonce": "=",
                "storage": {}
            }
        },
        "trace": [],
        "vmTrace": null
    }
}

Last updated