> For the complete documentation index, see [llms.txt](https://docs.rpcfast.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.rpcfast.com/rpc-fast-saas-evm/robinhood-api/debug_tracetransaction-robinhood.md).

# debug\_traceTransaction - Robinhood Chain

debug\_traceTransaction on Robinhood Chain: re-executes a mined transaction and returns a trace of its execution. Parameters, response and request example for the RPC Fast endpoint.

Re-executes a mined transaction and returns a trace of its execution.

{% hint style="info" %}
RPC Fast accepts the built-in tracers only: `callTracer`, `flatCallTracer`, `prestateTracer` or `4byteTracer`. The default opcode logger and JavaScript tracers are rejected, and `timeout` may be at most `10s`.
{% endhint %}

## Parameters

1. `txHash` (hash) — Transaction hash
2. `config` (object) — Tracer settings
   * `tracer` (string) — Tracer name: `callTracer`, `flatCallTracer`, `prestateTracer` or `4byteTracer`
   * `tracerConfig` (object) — Optional. Tracer options, e.g. `{"onlyTopCall": true}` for `callTracer`
   * `timeout` (string) — Optional. Go duration such as `5s`; at most `10s`

## Returns

Trace in the format of the tracer: for `callTracer`, the call tree with `type`, `from`, `to`, `value`, `gas`, `gasUsed`, `input`, `output` and nested `calls`.

## Example

#### Request

```bash
curl https://robinhood-mainnet.rpcfast.com/?api_key=<API_KEY> \
  -X POST -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":1,"method":"debug_traceTransaction","params":["0x75d83ccf8e1b9408b67eb58230db31469716178c9e98bf351101664be5f40013",{"tracer":"callTracer"}]}'
```

#### Response

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "beforeEVMTransfers": [
      {
        "purpose": "feePayment",
        "from": "0xecBe7AF7627b6A38Bd59CB29245bf4f140fdcDC0",
        "to": null,
        "value": "0x12196c16fc0"
      }
    ],
    "afterEVMTransfers": [
      {
        "purpose": "gasRefund",
        "from": null,
        "to": "0xecBe7AF7627b6A38Bd59CB29245bf4f140fdcDC0",
        "value": "0x32187f0b80"
      },
      {
        "purpose": "feeCollection",
        "from": null,
        "to": "0x5a2B80a9b7effc06129bD5462D77BC20A8A59BE7",
        "value": "0xef2ea8d400"
      },
      {
        "purpose": "feeCollection",
        "from": null,
        "to": "0xbC5C3a7Adecf54D34169fd90dbD1B7d3142DF067",
        "value": "0x4f999040"
      },
      "… 1 more"
    ],
    "from": "0xecbe7af7627b6a38bd59cb29245bf4f140fdcdc0",
    "gas": "0xf29c",
    "gasUsed": "0xc8a4",
    "to": "0xe7e2fb7e34b74792615086700a19912625ca695d",
    "input": "0xa9059cbb000000000000000000000000eb18a090e87cb0e7c809e37524d8efc072df2b0b0000000000000000000000000000000000000000000000008ac723…",
    "output": "0x0000000000000000000000000000000000000000000000000000000000000001",
    "value": "0x0",
    "type": "CALL"
  }
}
```

See [Compute Units](https://docs.rpcfast.com/rpc-fast-saas-evm/compute-units-cus.md) for the price of this method on Robinhood Chain.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.rpcfast.com/rpc-fast-saas-evm/robinhood-api/debug_tracetransaction-robinhood.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
