> ## Documentation Index
> Fetch the complete documentation index at: https://chainstack-docs-polygon-erigon-trace-deprecation.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# debug_traceCall | Ronin

> Ronin debug_traceCall executes a call on the node like eth_call and returns detailed execution traces for debugging contract interactions on Chainstack.

The interactive example here is a call to the Ronin Staking Vesting contract. Specifically, to the `lastBlockSendingBonus` function. The data `0x0d9160e7` in the call is the signature for the function `lastBlockSendingBonus`. You can generate the function signature using Chainstack's [Web3Tools](https://web3tools.chainstacklabs.com/generate-solidity-functions-signature) by typing `lastBlockSendingBonus()` into the function name field.

The `debug_traceCall` method allows for the execution of a call directly on the node, similar to `eth_call`, but with the added benefit of returning detailed execution traces. This method is invaluable for debugging contract interactions by providing insights into the execution flow, state changes, and gas usage without requiring a transaction to be committed to a block.

## Parameters

* `object` - The transaction call object, which includes:
  * `to`: The address of the contract to call.
  * `data`: The data to send to the contract, typically including the method signature and encoded parameters.
* `string` - The block number or string (`latest`, `earliest`, `pending`) specifying the state to use for executing the call.

## Response

* `result` - An object containing the detailed execution trace of the call. This includes information on gas usage, the operations performed, and any state changes that occurred as a result of the call's execution.

## Use case

The `debug_traceCall` method is particularly useful for developers during the contract development and debugging phase. It provides a powerful tool for analyzing how contract methods behave when invoked, identifying potential issues, and optimizing gas usage.


## OpenAPI

````yaml openapi/ronin_node_api/debug_traceCall.json POST /3997273fc956a67dc6982384500e669e
openapi: 3.0.0
info:
  title: debug_traceCall
  version: 1.0.0
  description: >-
    Executes the given call and returns a number of traces specified by the
    call.
servers:
  - url: https://ronin-mainnet.core.chainstack.com
security: []
paths:
  /3997273fc956a67dc6982384500e669e:
    post:
      tags:
        - debug
      summary: Trace call execution
      operationId: traceCall
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                id:
                  type: integer
                  default: 1
                jsonrpc:
                  type: string
                  default: '2.0'
                method:
                  type: string
                  default: debug_traceCall
                params:
                  type: array
                  items:
                    oneOf:
                      - type: object
                        properties:
                          to:
                            type: string
                          data:
                            type: string
                      - type: string
                  default:
                    - to: '0x5a254c12ddeb86e2f5626d59c490eb3db1974944'
                      data: '0x0d9160e7'
                    - latest
      responses:
        '200':
          description: Trace result of the call execution
          content:
            application/json:
              schema:
                type: object
                properties:
                  jsonrpc:
                    type: string
                  id:
                    type: integer
                  result:
                    type: object

````