trace_block

Retrieves detailed execution information about transactions within a given block number. This is similar to debug_traceBlockByNumber.

Parameters

Quantity or tag - choose 1 of the following options:

  • A hexadecimal block number.

  • "earliest" - the earliest/genesis block.

  • "latest" - the latest mined block.

  • "safe" - the latest safe head block.

  • "finalized" - the latest finalized block.

  • "pending" - the pending state/transactions.

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_block",
  "params": [
    "0x2973e"
  ]
}'

Sample Response

{
  "jsonrpc": "2.0",
  "id": 1,
  "result": [
    {
      "action": {
        "from": "0x50b8f981ce93fd5b81b844409169148428400bf3",
        "callType": "call",
        "gas": "0x74448",
        "input": "0xd5064ed1000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e000000000000000000000000000000000000000000000000000000000000000015553445f45544800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000004c600000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000014f856bf34f",
        "to": "0x672e330b81a6d6c4fb2a7cad28b3f2295efaab77",
        "value": "0x1"
      },
      "blockHash": "0xebb4a80b7f881473d6ef32b7a9b7b0c1aaf4c0bb02f239c323c46e41a5d9497c",
      "blockNumber": 169790,
      "result": {
        "gasUsed": "0xf026",
        "output": "0x"
      },
      "subtraces": 0,
      "traceAddress": [],
      "transactionHash": "0xc614297cc140092cb83fd067ea40529143a65ad83c0d41bce999a40086e4a465",
      "transactionPosition": 0,
      "type": "call"
    },
    {
      "action": {
        "author": "0xb6e2d440c46510ec44266a3f58165e3956173df0",
        "rewardType": "block",
        "value": "0x4563918244f40000"
      },
      "blockHash": "0xebb4a80b7f881473d6ef32b7a9b7b0c1aaf4c0bb02f239c323c46e41a5d9497c",
      "blockNumber": 169790,
      "result": null,
      "subtraces": 0,
      "traceAddress": [],
      "type": "reward"
    }
  ]
}

Last updated