trace_transaction

Returns all traces of a given transaction.

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 '{ 
  "id": 1,
  "jsonrpc": "2.0",
  "method": "trace_transaction",
  "params": [
    "0x7cba4b367cd6307f97b2531b2e5c0200c0570c1029409328527bc7052fc6c6e6"
  ]
}'

Sample Response

{
  "jsonrpc": "2.0",
  "id": 1,
  "result": [
    {
      "action": {
        "from": "0xfbfbd10182ed8f931c66e1831127507e639256d2",
        "callType": "call",
        "gas": "0xbcb39",
        "input": "0x3d7d3f5a00000000000000000000000000000000000000000000000000000000000010f800000000000000000000000000000000000000000000000d8d726b7177a8000000000000000000000000000000000000000000000000000ad78ebc5ac62000000000000000000000000000000000000000000000000000000000000000828480",
        "to": "0xf556faf23fc2feefa33ee6db2d1ee4c70e534513",
        "value": "0x0"
      },
      "blockHash": "0xc1ee5eb8f483194709aeafc44cf24fcc3af6e4bbb7b6850d4806b81ffc7cebe3",
      "blockNumber": 6898120,
      "result": {
        "gasUsed": "0x78a27",
        "output": "0x"
      },
      "subtraces": 1,
      "traceAddress": [],
      "transactionHash": "0x7cba4b367cd6307f97b2531b2e5c0200c0570c1029409328527bc7052fc6c6e6",
      "transactionPosition": 0,
      "type": "call"
    },
    {
      "action": {
        "from": "0xf556faf23fc2feefa33ee6db2d1ee4c70e534513",
        "callType": "delegatecall",
        "gas": "0xb9177",
        "input": "0x3d7d3f5a00000000000000000000000000000000000000000000000000000000000010f800000000000000000000000000000000000000000000000d8d726b7177a8000000000000000000000000000000000000000000000000000ad78ebc5ac62000000000000000000000000000000000000000000000000000000000000000828480",
        "to": "0x0ee1ec80a8d75235f05b61d60034cf3e31d767d4",
        "value": "0x0"
      },
      "blockHash": "0xc1ee5eb8f483194709aeafc44cf24fcc3af6e4bbb7b6850d4806b81ffc7cebe3",
      "blockNumber": 6898120,
      "result": {
        "gasUsed": "0x77f40",
        "output": "0x"
      },
      "subtraces": 3,
      "traceAddress": [
        0
      ],
      "transactionHash": "0x7cba4b367cd6307f97b2531b2e5c0200c0570c1029409328527bc7052fc6c6e6",
      "transactionPosition": 0,
      "type": "call"
    },
    {
      "action": {
        "from": "0xf556faf23fc2feefa33ee6db2d1ee4c70e534513",
        "callType": "call",
        "gas": "0xb5428",
        "input": "0x55909f87",
        "to": "0xb66c5187129db1f7fbe1d56a0411790a4dfc6ba5",
        "value": "0x0"
      },
      "blockHash": "0xc1ee5eb8f483194709aeafc44cf24fcc3af6e4bbb7b6850d4806b81ffc7cebe3",
      "blockNumber": 6898120,
      "result": {
        "gasUsed": "0x45d",
        "output": "0x0000000000000000000000000000000000000000000000000000000000000001"
      },
      "subtraces": 0,
      "traceAddress": [
        0,
        0
      ],
      "transactionHash": "0x7cba4b367cd6307f97b2531b2e5c0200c0570c1029409328527bc7052fc6c6e6",
      "transactionPosition": 0,
      "type": "call"
    },
    {
      "action": {
        "from": "0xf556faf23fc2feefa33ee6db2d1ee4c70e534513",
        "callType": "call",
        "gas": "0xb462a",
        "input": "0x0b7edea3000000000000000000000000fbfbd10182ed8f931c66e1831127507e639256d200000000000000000000000000000000000000000000000000000000000010f8",
        "to": "0x56d6d11df2aa6a0dbc5569a56c9299fcdb418911",
        "value": "0x0"
      },
      "blockHash": "0xc1ee5eb8f483194709aeafc44cf24fcc3af6e4bbb7b6850d4806b81ffc7cebe3",
      "blockNumber": 6898120,
      "result": {
        "gasUsed": "0x3fff8",
        "output": "0x"
      },
      "subtraces": 1,
      "traceAddress": [
        0,
        1
      ],
      "transactionHash": "0x7cba4b367cd6307f97b2531b2e5c0200c0570c1029409328527bc7052fc6c6e6",
      "transactionPosition": 0,
      "type": "call"
    },
    {
      "action": {
        "from": "0x56d6d11df2aa6a0dbc5569a56c9299fcdb418911",
        "callType": "delegatecall",
        "gas": "0xb0e88",
        "input": "0x0b7edea3000000000000000000000000fbfbd10182ed8f931c66e1831127507e639256d200000000000000000000000000000000000000000000000000000000000010f8",
        "to": "0xe73480759efb6731d133b382ab8df02774e3a265",
        "value": "0x0"
      },
      "blockHash": "0xc1ee5eb8f483194709aeafc44cf24fcc3af6e4bbb7b6850d4806b81ffc7cebe3",
      "blockNumber": 6898120,
      "result": {
        "gasUsed": "0x3f51d",
        "output": "0x"
      },
      "subtraces": 0,
      "traceAddress": [
        0,
        1,
        0
      ],
      "transactionHash": "0x7cba4b367cd6307f97b2531b2e5c0200c0570c1029409328527bc7052fc6c6e6",
      "transactionPosition": 0,
      "type": "call"
    },
    {
      "action": {
        "from": "0xf556faf23fc2feefa33ee6db2d1ee4c70e534513",
        "callType": "call",
        "gas": "0x6e7b5",
        "input": "0x27ebe40a00000000000000000000000000000000000000000000000000000000000010f800000000000000000000000000000000000000000000000d8d726b7177a8000000000000000000000000000000000000000000000000000ad78ebc5ac62000000000000000000000000000000000000000000000000000000000000000828480000000000000000000000000fbfbd10182ed8f931c66e1831127507e639256d2",
        "to": "0x56d6d11df2aa6a0dbc5569a56c9299fcdb418911",
        "value": "0x0"
      },
      "blockHash": "0xc1ee5eb8f483194709aeafc44cf24fcc3af6e4bbb7b6850d4806b81ffc7cebe3",
      "blockNumber": 6898120,
      "result": {
        "gasUsed": "0x2f15d",
        "output": "0x"
      },
      "subtraces": 1,
      "traceAddress": [
        0,
        2
      ],
      "transactionHash": "0x7cba4b367cd6307f97b2531b2e5c0200c0570c1029409328527bc7052fc6c6e6",
      "transactionPosition": 0,
      "type": "call"
    },
    {
      "action": {
        "from": "0x56d6d11df2aa6a0dbc5569a56c9299fcdb418911",
        "callType": "delegatecall",
        "gas": "0x6c17b",
        "input": "0x27ebe40a00000000000000000000000000000000000000000000000000000000000010f800000000000000000000000000000000000000000000000d8d726b7177a8000000000000000000000000000000000000000000000000000ad78ebc5ac62000000000000000000000000000000000000000000000000000000000000000828480000000000000000000000000fbfbd10182ed8f931c66e1831127507e639256d2",
        "to": "0xe73480759efb6731d133b382ab8df02774e3a265",
        "value": "0x0"
      },
      "blockHash": "0xc1ee5eb8f483194709aeafc44cf24fcc3af6e4bbb7b6850d4806b81ffc7cebe3",
      "blockNumber": 6898120,
      "result": {
        "gasUsed": "0x2e670",
        "output": "0x"
      },
      "subtraces": 1,
      "traceAddress": [
        0,
        2,
        0
      ],
      "transactionHash": "0x7cba4b367cd6307f97b2531b2e5c0200c0570c1029409328527bc7052fc6c6e6",
      "transactionPosition": 0,
      "type": "call"
    },
    {
      "action": {
        "from": "0x56d6d11df2aa6a0dbc5569a56c9299fcdb418911",
        "callType": "call",
        "gas": "0x6977b",
        "input": "0x23b872dd000000000000000000000000fbfbd10182ed8f931c66e1831127507e639256d200000000000000000000000056d6d11df2aa6a0dbc5569a56c9299fcdb41891100000000000000000000000000000000000000000000000000000000000010f8",
        "to": "0xf556faf23fc2feefa33ee6db2d1ee4c70e534513",
        "value": "0x0"
      },
      "blockHash": "0xc1ee5eb8f483194709aeafc44cf24fcc3af6e4bbb7b6850d4806b81ffc7cebe3",
      "blockNumber": 6898120,
      "result": {
        "gasUsed": "0x1731d",
        "output": "0x"
      },
      "subtraces": 1,
      "traceAddress": [
        0,
        2,
        0,
        0
      ],
      "transactionHash": "0x7cba4b367cd6307f97b2531b2e5c0200c0570c1029409328527bc7052fc6c6e6",
      "transactionPosition": 0,
      "type": "call"
    },
    {
      "action": {
        "from": "0xf556faf23fc2feefa33ee6db2d1ee4c70e534513",
        "callType": "delegatecall",
        "gas": "0x6728d",
        "input": "0x23b872dd000000000000000000000000fbfbd10182ed8f931c66e1831127507e639256d200000000000000000000000056d6d11df2aa6a0dbc5569a56c9299fcdb41891100000000000000000000000000000000000000000000000000000000000010f8",
        "to": "0x0ee1ec80a8d75235f05b61d60034cf3e31d767d4",
        "value": "0x0"
      },
      "blockHash": "0xc1ee5eb8f483194709aeafc44cf24fcc3af6e4bbb7b6850d4806b81ffc7cebe3",
      "blockNumber": 6898120,
      "result": {
        "gasUsed": "0x1683c",
        "output": "0x"
      },
      "subtraces": 0,
      "traceAddress": [
        0,
        2,
        0,
        0,
        0
      ],
      "transactionHash": "0x7cba4b367cd6307f97b2531b2e5c0200c0570c1029409328527bc7052fc6c6e6",
      "transactionPosition": 0,
      "type": "call"
    }
  ]
}

Last updated