Skip to content

Instantly share code, notes, and snippets.

@cassc
Created May 10, 2024 03:08
Show Gist options
  • Save cassc/cb7acd52171f27b766d12ea21dac0f5a to your computer and use it in GitHub Desktop.
Save cassc/cb7acd52171f27b766d12ea21dac0f5a to your computer and use it in GitHub Desktop.
trace_transaction response
{
"jsonrpc": "2.0",
"id": 1,
"result": [
{
"action": {
"callType": "call",
"from": "0x6438b5009a81b85800511f12a3d15f61fb553f53",
"gas": "0x12f44",
"input": "0xa9059cbb0000000000000000000000007154980e9be95eab4eef2269650d4c7e17f156b80000000000000000000000000000000000000000000000000000000033721c51",
"to": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
"value": "0x0"
},
"blockHash": "0xb85642efcf81c2dc0d0db617bd83b1aacb3de2df930e43f555732875b08d4e0f",
"blockNumber": 17317923,
"result": {
"gasUsed": "0xabf1",
"output": "0x0000000000000000000000000000000000000000000000000000000000000001"
},
"subtraces": 1,
"traceAddress": [],
"transactionHash": "0x1e404c4bf580688c5527df2ce5aceb3db5de49479ab7dd321dd4615e4f5a7a5c",
"transactionPosition": 121,
"type": "call"
},
{
"action": {
"callType": "delegatecall",
"from": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
"gas": "0x10eac",
"input": "0xa9059cbb0000000000000000000000007154980e9be95eab4eef2269650d4c7e17f156b80000000000000000000000000000000000000000000000000000000033721c51",
"to": "0xa2327a938febf5fec13bacfb16ae10ecbc4cbdcf",
"value": "0x0"
},
"blockHash": "0xb85642efcf81c2dc0d0db617bd83b1aacb3de2df930e43f555732875b08d4e0f",
"blockNumber": 17317923,
"result": {
"gasUsed": "0x8f78",
"output": "0x0000000000000000000000000000000000000000000000000000000000000001"
},
"subtraces": 0,
"traceAddress": [
0
],
"transactionHash": "0x1e404c4bf580688c5527df2ce5aceb3db5de49479ab7dd321dd4615e4f5a7a5c",
"transactionPosition": 121,
"type": "call"
}
]
}
@cassc
Copy link
Author

cassc commented May 10, 2024

{
  "jsonrpc": "2.0",
  "id": 1,
  "result": [
    {
      "action": {
        "callType": "call",
        "from": "0xded2b1a426e1b7d415a40bcad44e98f47181dda2",
        "gas": "0xedc3",
        "input": "0xe32a9a37000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb480000000000000000000000000000000000000000000000000000000000000000",
        "to": "0xc793113f1548b97e37c409f39244ee44241bf2b3",
        "value": "0x0"
      },
      "blockHash": "0xadc062e388f2cb069f54f398a7b26c41c8484004deba471c78864a5c732363d3",
      "blockNumber": 19687890,
      "result": {
        "gasUsed": "0xe7d9",
        "output": "0x"
      },
      "subtraces": 2,
      "traceAddress": [],
      "transactionHash": "0x2606d459a50ca4920722a111745c2eeced1d8a01ff25ee762e22d5d4b1595739",
      "transactionPosition": 27,
      "type": "call"
    },
    {
      "action": {
        "callType": "staticcall",
        "from": "0xc793113f1548b97e37c409f39244ee44241bf2b3",
        "gas": "0xca84",
        "input": "0x70a08231000000000000000000000000bc452fdc8f851d7c5b72e1fe74dfb63bb793d511",
        "to": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
        "value": "0x0"
      },
      "blockHash": "0xadc062e388f2cb069f54f398a7b26c41c8484004deba471c78864a5c732363d3",
      "blockNumber": 19687890,
      "result": {
        "gasUsed": "0x266f",
        "output": "0x0000000000000000000000000000000000000000000000000000012f97197a40"
      },
      "subtraces": 1,
      "traceAddress": [
        0
      ],
      "transactionHash": "0x2606d459a50ca4920722a111745c2eeced1d8a01ff25ee762e22d5d4b1595739",
      "transactionPosition": 27,
      "type": "call"
    },
    {
      "action": {
        "callType": "delegatecall",
        "from": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
        "gas": "0xab82",
        "input": "0x70a08231000000000000000000000000bc452fdc8f851d7c5b72e1fe74dfb63bb793d511",
        "to": "0x43506849d7c04f9138d1a2050bbf3a0c054402dd",
        "value": "0x0"
      },
      "blockHash": "0xadc062e388f2cb069f54f398a7b26c41c8484004deba471c78864a5c732363d3",
      "blockNumber": 19687890,
      "result": {
        "gasUsed": "0x9f9",
        "output": "0x0000000000000000000000000000000000000000000000000000012f97197a40"
      },
      "subtraces": 0,
      "traceAddress": [
        0,
        0
      ],
      "transactionHash": "0x2606d459a50ca4920722a111745c2eeced1d8a01ff25ee762e22d5d4b1595739",
      "transactionPosition": 27,
      "type": "call"
    },
    {
      "action": {
        "callType": "call",
        "from": "0xc793113f1548b97e37c409f39244ee44241bf2b3",
        "gas": "0xa121",
        "input": "0x23b872dd000000000000000000000000bc452fdc8f851d7c5b72e1fe74dfb63bb793d511000000000000000000000000ded2b1a426e1b7d415a40bcad44e98f47181dda20000000000000000000000000000000000000000000000000000012f97197a40",
        "to": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
        "value": "0x0"
      },
      "blockHash": "0xadc062e388f2cb069f54f398a7b26c41c8484004deba471c78864a5c732363d3",
      "blockNumber": 19687890,
      "result": {
        "gasUsed": "0x9c71",
        "output": "0x0000000000000000000000000000000000000000000000000000000000000001"
      },
      "subtraces": 1,
      "traceAddress": [
        1
      ],
      "transactionHash": "0x2606d459a50ca4920722a111745c2eeced1d8a01ff25ee762e22d5d4b1595739",
      "transactionPosition": 27,
      "type": "call"
    },
    {
      "action": {
        "callType": "delegatecall",
        "from": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
        "gas": "0x9bba",
        "input": "0x23b872dd000000000000000000000000bc452fdc8f851d7c5b72e1fe74dfb63bb793d511000000000000000000000000ded2b1a426e1b7d415a40bcad44e98f47181dda20000000000000000000000000000000000000000000000000000012f97197a40",
        "to": "0x43506849d7c04f9138d1a2050bbf3a0c054402dd",
        "value": "0x0"
      },
      "blockHash": "0xadc062e388f2cb069f54f398a7b26c41c8484004deba471c78864a5c732363d3",
      "blockNumber": 19687890,
      "result": {
        "gasUsed": "0x9956",
        "output": "0x0000000000000000000000000000000000000000000000000000000000000001"
      },
      "subtraces": 0,
      "traceAddress": [
        1,
        0
      ],
      "transactionHash": "0x2606d459a50ca4920722a111745c2eeced1d8a01ff25ee762e22d5d4b1595739",
      "transactionPosition": 27,
      "type": "call"
    }
  ]
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment