trace_transaction
Overview
The 'trace_transaction' methodallows users to retrieve internal transactions that were triggered during the main transaction. This is particularly useful for understanding the entire flow of a transaction, especially when smart contracts are involved.
Request
{
"method": "trace_transaction",
"params": ["0x..."], // Transaction hash
"id": 1,
"jsonrpc": "2.0"
}
Request Parameters
- method (string): The name of the method, in this case, "trace_transaction".
- params (array): An array containing the transaction hash you wish to trace.
- id (integer): A unique identifier for the request.
- jsonrpc (string): The version of the JSON-RPC protocol, typically "2.0".
Response
{
"id": 1,
"jsonrpc": "2.0",
"result": [
// Array of trace objects
]
}
Errors
- Invalid Request: This error is returned if the request format is incorrect.
- Internal Error: This error is returned if there's a server-side issue processing the request.
Rate Limits
Please note that there are rate limits applied to the API to ensure fair usage. Free-tier users are limited to 100 requests per day, while premium users can make up to 1000 or more requests per day.
Support
If you encounter any issues or have further questions regarding the eth_getBlockByHash method, please contact our support team at [email protected].
Was this section helpful?