🔷 Arbitrum
arbtrace_block

Arbitrum API Documentation


arbtrace_block RPC Method    |    Arbitrum

arbtrace_block method returns traces created at a specific block.

ℹ️

arbtrace_block is only availible on Arbitrum.

Parameters

  • Block number or Tag [required]

The block number as hex or the Tag. "latest", "earliest", "pending", "safe" or "finalized", or an hexadecimal block number.

"Safe" and "finalized" are only availible on Ethereum and Arbitrum One chains. Read block parameter description in Ethereum documentation (opens in a new tab).

Returns

  • array - The list of trace objects. One per transaction in the block, with the following fields:

    •    action - The action performed, parity style.

      •      from - The sender address.

      •      to - The receiver address.

      •      callType - The type of the call, either call or delegatecall.

      •      gas - The gas provided by the sender as hexadecimal.

      •      input - The input data of the action (transaction).

      •      value - The amount of ETH sent in this action (transaction).

      •      author - The author of this transaction, for some transaction types.

      •      rewardType - The type of the reward, for reward transactions.

    •    blockHash - The hash of the block where this action happened.

    •    blockNumber - The number of the block where this action happened.

    •    result - The result object, parity style.

      •      gasUsed - The amount of gas used by this transaction.

      •      output - The output of this transaction.

    •    subtraces - The number of traces of internal transactions that happened during this transaction.

    •    traceAddress - The trace addresses (array) where the call executed (every contract where code was executed).

    •    transactionHash - The hash of the transaction being traced.

    •    transactionPosition - The position of the transaction in the block.

    •    type - The type of the transaction like call or create or reward.

Need RPC API keys?

Get 12.5M archival requests for free today.

Request

POST https://<network>.chainnodes.org/YOUR-API-KEY

Example

  • HTTPS POST Request with a JSON RPC call in the body
  • Replace YOUR-API-KEY with the API key from your CHAINNODES.ORG Dashboard
  • You can use a different supported network by replacing arbitrum-one
curl https://arbitrum-one.chainnodes.org/YOUR-API-KEY \
    -X POST \
    -H "Content-Type: application/json" \
    -d '{"id": "1",
     "jsonrpc":"2.0",
     "method":"arbtrace_block",
      "params": ["0x19",
                 ]
        }'

💡 Confusing?

Ask our experienced blockchain developers in Telegram

Result example

{"id":"1",
"jsonrpc":"2.0",
"result":[
    {"traceAddress":[],
    "transactionHash":"0x5a32dc599581dc22c14516a64502437ffcf9b67109f1cc6531df717718226783",
    "blockNumber":25,
    "result":
      {
        "gasUsed":"0x89",
      "output":"0x"
      },
    "transactionPosition":0,
    "action":
      {
        "from":"0x1c7d91ccbdbf378bac0f074678b09cb589184e4e",
        "gas":"0x2799",
        "callType":"call",
        "to":"0x000000000000000000000000000000000000006b",
        "value":"0x0",
        "input":"0xc746c8f40000000000000000000000006c9fc64a53c1b71fb3f9af64d1ae3a4931a5f4e9"
      },
    "type":"call",
    "subtraces":0,
    "blockHash":"0xf9c62d0fe84c3cbe43301e6da5055f3d82ba41ef174322b50e637a62c72bdd42"}
 ]
} 

JSON-RPC Arbitrum API Documentation by CHAINNODES is based on Erigon node client. Contact us if you are interested in specific methods that are only available on geth, besu, Nethermind or reth.