curl --request POST \
--url https://bsc-mainnet.core.chainstack.com/35848e183f3e3303c8cfeacbea831cab \
--header 'Content-Type: application/json' \
--data '{
"id": 1,
"jsonrpc": "2.0",
"method": "trace_get",
"params": [
"0xf6bc709b8086048bff62dba8275922f9bf1fc1f9d82994037d3e7179597b3d1d",
[
"0x1"
]
]
}'
{
"jsonrpc": "<string>",
"id": 123,
"result": {}
}
curl --request POST \
--url https://bsc-mainnet.core.chainstack.com/35848e183f3e3303c8cfeacbea831cab \
--header 'Content-Type: application/json' \
--data '{
"id": 1,
"jsonrpc": "2.0",
"method": "trace_get",
"params": [
"0xf6bc709b8086048bff62dba8275922f9bf1fc1f9d82994037d3e7179597b3d1d",
[
"0x1"
]
]
}'
{
"jsonrpc": "<string>",
"id": 123,
"result": {}
}
trace_get
retrieves a specific trace from a transaction by its index. This method is useful for developers, auditors, and analysts examining a particular step or operation within a transaction’s execution path. It allows for a focused analysis of a segment of the transaction’s trace, providing detailed information about a single operation, including calls to other contracts, state changes, and execution outcomes.
transactionHash
— The transaction hash from which you want to retrieve a trace, specified as a hexadecimal string.traceIndex
— An array of integers specifying the trace index to retrieve. The index reflects the order of operations within the transaction’s execution path.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.Specific trace data retrieved from the transaction.
The response is of type object
.
Was this page helpful?