trace_get

Returns trace of a transaction at given position.

Parameters

  1. Transaction Hash.

  2. Index position of the transaction in hex code.

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_get",
  "params": [
    "0xfbca383f87589d8f4234b53d5496711a0be6e79415bc20495bdf969765db4f9d",
    "0x0"
  ]
}'

Sample Response

{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "action": {
      "from": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
      "callType": "delegatecall",
      "gas": "0x1d1d7",
      "input": "0xa9059cbb0000000000000000000000005f5b9db626596db63ceba3695b82ce38076b65f2000000000000000000000000000000000000000000000000000000009d4bf1c0",
      "to": "0xa2327a938febf5fec13bacfb16ae10ecbc4cbdcf",
      "value": "0x0"
    },
    "blockHash": "0xf5dbb515c650a58947af6677f6ff62b8dcc07cefcd62864f6c6495d9a8df346f",
    "blockNumber": 18474566,
    "result": {
      "gasUsed": "0x8f78",
      "output": "0x0000000000000000000000000000000000000000000000000000000000000001"
    },
    "subtraces": 0,
    "traceAddress": [
      0
    ],
    "transactionHash": "0xfbca383f87589d8f4234b53d5496711a0be6e79415bc20495bdf969765db4f9d",
    "transactionPosition": 120,
    "type": "call"
  }
}

Last updated