arbtrace_callMany - Arbitrum

arbtrace_callMany. Executes multiple transaction trace calls in a single request

arbtrace_callMany - arbitrum [Value: 90CU]
Executes multiple message calls sequentially without creating transactions on the blockchain
Use cases

Use cases

  • Simulate multiple transactions to debug contract interactions
  • Analyze multiple transaction traces within a specific block
  • Investigate gas usage for multiple hypothetical transactions
Constraints

Constraints

  • arbtrace_ methods can be used on blocks prior to 22207816, while debug_trace methods can be used for blocks after 22207818
  • Block 22207817 cannot be traced but is empty.
Get started
Unlock Access to 50+ chains
Boost your app's speed and reliability with dRPC - get your access API key

Language

Request
Examples
curl https://arbitrum.drpc.org \
  -X POST \
  -H "Content-Type: application/json" \
  --data '{
    "method": "arbtrace_callMany",
    "params": [
      [
        [
          {
            "from": null,
            "to": "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b",
            "value": "0x186a0"
          },
          ["trace"]
        ],
        [
          {
            "from": null,
            "to": "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b",
            "value": "0x186a0"
          },
          ["trace"]
        ]
      ],
      "latest"
    ],
    "id": 1,
    "jsonrpc": "2.0"
  }'
Copy
Response
200
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": [
    {
      "output": "0x",
      "stateDiff": null,
      "trace": [
        {
          "action": {
            "callType": "call",
            "from": "0xb8351b61fa1eb007a9f80144c489d513e6a76b14",
            "gas": "0x7fffffff",
            "input": "0x",
            "to": "0x478fa4c971a077038b4fc5c172c3af5552224ccc",
            "value": "0xb1a2bc2ec50000"
          },
          "result": {
            "gasUsed": "0x0",
            "output": "0x"
          },
          "subtraces": 0,
          "traceAddress": [],
          "type": "call"
        }
      ],
      "vmTrace": null,
      "destroyedContracts": null
    },
    {
      "output": "0x",
      "stateDiff": null,
      "trace": [
        {
          "action": {
            "callType": "call",
            "from": "0xb8351b61fa1eb007a9f80144c489d513e6a76b14",
            "gas": "0x7fffffff",
            "input": "0x",
            "to": "0x988aa44e12c7bce07e449a4156b4a269d6642b3a",
            "value": "0x6f05b59d3b20000"
          },
          "result": {
            "gasUsed": "0x0",
            "output": "0x"
          },
          "subtraces": 0,
          "traceAddress": [],
          "type": "call"
        }
      ],
      "vmTrace": null,
      "destroyedContracts": null
    }
  ]
}
Copy

Request params

idinteger
jsonrpcstring
methodstring
Parametersarray
array
transactionobject
The transaction call object which contains the following fields.
array
blockNumberstring
Block number containing the transaction.
fromstring
Transaction hash.
gasstring
Gas provided by the sender.
gasPricestring
Gas price provided by the sender in wei.
tostring
Receiver's address (null if contract creation).
valuestring
Value transferred in Wei.
blockNumberstring
(optional) Block number as an integer, or string
  • latest [default] - The most recent block in the blockchain (default).
  • earliest - The first block, also known as the genesis block.
  • pending - Transactions that have been broadcast but not yet included in a block.
traceTypestring
Specifies the trace options, such as "vmTrace", "trace", and "stateDiff".
  • trace [default] - To get the basic trace of the given transaction.
  • vmTrace - To get a full trace of the virtual machine's state during the execution of the given of given transaction, including for any subcalls
  • stateDiff - To get information on altered Ethereum state due to execution of the given transaction.

Response

200
An array of trace results, each containing detailed execution traces of the corresponding call

Response params

object
idinteger
jsonrpcstring
resultobject
object
actionobject
Contains details about the trace action.
object
callTypestring
The type of call.
fromstring
The sender's address.
tostring
The receiver's address.
valuestring
The value transferred in wei.
gasstring
The gas provided for the call.
inputstring
The data sent with the call.
resultstring
object
gasUsedstring
Gas used by the trace.
outputstring
Call output.
subtracesinteger
Number of subtraces created by this trace..
traceAddressarray_of_strings
Position of this trace in the call stack.
transactionPositionstring
Transaction's position in the block.
typestring
The type of trace.
vmTracestring
To get a full trace of the virtual machine's state during the execution of the given of given transaction, including for any subcalls