trace_replayBlockTransactions

Replays all transactions in a block, then returns the requested traces for each transaction.

Parameters

  1. Quantity or tag - choose 1 of the following options:

    • A hexadecimal block number.

    • "earliest" - the earliest/genesis block.

    • "latest" - the latest mined block.

    • "finalized" - the latest finalized block.

    • "pending" - the pending state/transactions.

  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_replayBlockTransactions",
  "params": [
    "0x6941c8",
    ["stateDiff"]
  ],
  "id": 1
}'

Sample Response

{
  "jsonrpc": "2.0",
  "id": 1,
  "result": [
    {
      "output": "0x",
      "stateDiff": {
        "0x0375b2fc7140977c9c76d45421564e354ed42277": {
          "balance": {
            "*": {
              "from": "0x399bb1ca90d88b24ac",
              "to": "0x399bb380b0b8d6b2ac"
            }
          },
          "code": "=",
          "nonce": "=",
          "storage": {}
        },
        "0x56d6d11df2aa6a0dbc5569a56c9299fcdb418911": {
          "balance": "=",
          "code": "=",
          "nonce": "=",
          "storage": {
            "0x13053be54aa2904d5766168481bf278f332882b4e55fbafa4f27ff09a3ce01c2": {
              "*": {
                "from": "0x0000000000000000000000000000000000000000000000000000000000000064",
                "to": "0x0000000000000000000000000000000000000000000000000000000000000065"
              }
            },
            "0x30db7e9f115bd0f2ace81165cf730c2e10959640a9a0abbc2f18172a5df54cfc": {
              "*": {
                "from": "0x0000000000000000000000000000000000000000000000000000000000000000",
                "to": "0x00000000000000000000000000000000000000000000000000000000000010f8"
              }
            },
            "0x513e152dcfebbc3f7c96d517dfd13981a347495ed98c6dab6d9563a5c5d8a6db": {
              "*": {
                "from": "0x0000000000000000000000000000000000000000000000000000000000000000",
                "to": "0x000000000000000000000000fbfbd10182ed8f931c66e1831127507e639256d2"
              }
            },
            "0x513e152dcfebbc3f7c96d517dfd13981a347495ed98c6dab6d9563a5c5d8a6dc": {
              "*": {
                "from": "0x0000000000000000000000000000000000000000000000000000000000000000",
                "to": "0x000000000000000ad78ebc5ac6200000000000000000000d8d726b7177a80000"
              }
            },
            "0x513e152dcfebbc3f7c96d517dfd13981a347495ed98c6dab6d9563a5c5d8a6dd": {
              "*": {
                "from": "0x0000000000000000000000000000000000000000000000000000000000000000",
                "to": "0x00000000000000000000000000000000000000005fabb08f0000000000828480"
              }
            }
          }
        },
        "0xf556faf23fc2feefa33ee6db2d1ee4c70e534513": {
          "balance": "=",
          "code": "=",
          "nonce": "=",
          "storage": {
            "0x6bbe4d3db2d0d8b6175fa31d68e6b3a41fdeadf666e0284a7453d98cc35783c6": {
              "*": {
                "from": "0x000000000000000000000000000000000000000000000000000000000000055f",
                "to": "0x0000000000000000000000000000000000000000000000000000000000000560"
              }
            },
            "0x776386d3dd57dfd07e605cfcb5ca4972c9d541c64a8d40eff4debdf02c4e1706": {
              "*": {
                "from": "0x000000000000000000000000000000000000000000000000000000000000055f",
                "to": "0x0000000000000000000000000000000000000000000000000000000000000560"
              }
            },
            "0xc358acd4845739e993ea54d8d921c4e5b2f6e729eba3d15d40dbd834ae9a2c49": {
              "*": {
                "from": "0x0000000000000000000000000000000000000000000000000000000000000000",
                "to": "0x00000000000000000000000000000000000000000000000000000000000010f8"
              }
            },
            "0xcae113cf9587912815e8caa05cfcc20649ab88e4a986e9c0c4a09576607ef784": {
              "*": {
                "from": "0x00000000000000000000000000000000000000000000000000000000000010f8",
                "to": "0x0000000000000000000000000000000000000000000000000000000000003a02"
              }
            },
            "0xcae113cf9587912815e8caa05cfcc20649ab88e4a986e9c0c4a09576607ef79a": {
              "*": {
                "from": "0x0000000000000000000000000000000000000000000000000000000000003a02",
                "to": "0x0000000000000000000000000000000000000000000000000000000000000000"
              }
            },
            "0xd0d405f4483a3d50fc285e704e95b7ae0630e0aa76fa27c38e7ff991f27a408f": {
              "*": {
                "from": "0x0000000000000000000000000000000000000000000000000000000000000024",
                "to": "0x0000000000000000000000000000000000000000000000000000000000000023"
              }
            },
            "0xd5e269cc46b61ec5b2d69729d27b84f621d38c2e92016f1443fe8c0d45c7cb0a": {
              "*": {
                "from": "0x000000000000000000000000fbfbd10182ed8f931c66e1831127507e639256d2",
                "to": "0x00000000000000000000000056d6d11df2aa6a0dbc5569a56c9299fcdb418911"
              }
            },
            "0xdd77a3526fe1ce959f52bb2468bc69a907806607846fb0ae64262bb38e58cbd7": {
              "*": {
                "from": "0x0000000000000000000000000000000000000000000000000000000000000023",
                "to": "0x000000000000000000000000000000000000000000000000000000000000000d"
              }
            },
            "0xed1710e246cf738e6b5e348592e2c1bb5992597601385891a627c905f9a5522d": {
              "*": {
                "from": "0x000000000000000000000000000000000000000000000000000000000000000d",
                "to": "0x000000000000000000000000000000000000000000000000000000000000055f"
              }
            },
            "0xf7a530502b77ac8f02b6e968451db5b1202d553f5f20ef1e9d907d1b377dfbf6": {
              "*": {
                "from": "0x0000000000000000000000000000000000000000000000000000000000000024",
                "to": "0x0000000000000000000000000000000000000000000000000000000000000023"
              }
            }
          }
        },
        "0xfbfbd10182ed8f931c66e1831127507e639256d2": {
          "balance": {
            "*": {
              "from": "0x5dc634227bdf1a19",
              "to": "0x5dc47e029b938c19"
            }
          },
          "code": "=",
          "nonce": {
            "*": {
              "from": "0x217",
              "to": "0x218"
            }
          },
          "storage": {}
        }
      },
      "trace": [],
      "vmTrace": null,
      "transactionHash": "0x7cba4b367cd6307f97b2531b2e5c0200c0570c1029409328527bc7052fc6c6e6"
    }
  ]
}

Last updated