⛓️ Future is multichain! Check out the Tenderly 2024 networks integration recap. 🎉

trace_call - Blast


Summary

Executes a new message call and returns a number of possible traces.

Parameters

1. Transaction Call

From Address

The address the transaction is sent from
Example: 0x12345...

To Address

The address the transaction is directed to
Example: 0x12345...

Gas Hex

Integer of the gas provided for the transaction execution
Example: 0xff

Gas Price Hex

Integer of the gasPrice used for each paid gas
Example: 0xff

Value Hex

Integer of the value sent with this transaction
Example: 0xff

Data Bytes

Hash of the method signature and encoded parameters
Example: 0x00000...

2. Trace Type String[]

An array of desired traces, which can be one of the following:

  • vmTrace to get a full trace of the virtual machine's state during the execution of the given of given transaction, including for any subcells;
  • trace to get the basic trace of the given transaction;
  • stateDiff to get information on altered Ethereum state due to execution of the given transaction.
Example: ["trace"]

3. Block Number Quantity or Tag

Hex block number, or the tag latest, earliest, pending, finalized or safe
Example: "latest"

Code Examples

trace_call request
curl https://blast.gateway.tenderly.co/$TENDERLY_NODE_ACCESS_KEY \
    -X POST \
    -H "Content-Type: application/json" \
    -d '{
  "jsonrpc": "2.0",
  "id": 0,
  "method": "trace_call",
  "params": [
    {
      "from": "0xd8da6bf26964af9d7eed9e03e53415d37aa96045",
      "to": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
      "gas": "0x0",
      "gasPrice": "0x0",
      "value": "0x0",
      "data": "0xa9059cbb00000000000000000000000020a5814b73ef3537c6e099a0d45c798f4bd6e1d60000000000000000000000000000000000000000000000000000000000000001"
    },
    [
      "trace"
    ],
    "latest"
  ]
}'
trace_call response
{
  "id": 0,
  "jsonrpc": "2.0",
  "result": {
    "output": "0x0000000000000000000000000000000000000000000000000000000000000001",
    "stateDiff": null,
    "trace": [
      {
        "action": {
          "from": "0xd8da6bf26964af9d7eed9e03e53415d37aa96045",
          "callType": "CALL",
          "gas": "0xbeb6dbc",
          "input": "0xa9059cbb00000000000000000000000020a5814b73ef3537c6e099a0d45c798f4bd6e1d60000000000000000000000000000000000000000000000000000000000000001",
          "to": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
          "value": "0x0"
        },
        "blockHash": "0xe15d8c7bf7290c1b74f4109b91e360ab92b0b876bb1139ac9bac506d96418b01",
        "blockNumber": 19290387,
        "result": {
          "gasUsed": "0x750a",
          "output": "0x0000000000000000000000000000000000000000000000000000000000000001"
        },
        "subtraces": 0,
        "traceAddress": [],
        "transactionHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
        "transactionPosition": 0,
        "type": "call"
      }
    ],
    "vmTrace": null
  }
}
Last updated on