Replay transactions in a block
Endpoints
trace_get | Base
Base API method trace_get retrieves a specific trace from a transaction by its index. Available on Base via Chainstack JSON-RPC nodes.
POST
Replay transactions in a block
Base API methodDocumentation Index
Fetch the complete documentation index at: https://docs.chainstack.com/llms.txt
Use this file to discover all available pages before exploring further.
trace_get retrieves a specific trace from a transaction by its index. This method is particularly useful for developers, auditors, and analysts who are interested in examining a particular step or operation within a transaction’s execution path. It allows for a focused analysis on a segment of the transaction’s trace, providing detailed information about a single operation, including calls to other contracts, state changes, and execution outcomes.
Parameters
transactionHash— The hash of the transaction from which you want to retrieve a trace, specified as a hexadecimal string.traceIndex— An array of integers specifying the index of the trace to retrieve. The index reflects the order of operations within the transaction’s execution path.
Response
result— The trace data for the specified index within the transaction. This includes detailed information about the operation, such as the operation type, call data, value transferred, and the result of the operation. This focused trace can provide insights into specific actions taken by the transaction, including interactions with smart contracts and changes to the blockchain state.
Use case
Thetrace_get method is invaluable for detailed transaction analysis, especially when investigating complex transactions that involve multiple steps or interactions with various contracts. Developers can use it to debug specific operations within a transaction, auditors can employ it to verify the correctness and security of particular steps, and analysts might use it to study the behavior of contracts and transactions on a granular level.Body
application/json
Last modified on May 18, 2026