debug_traceTransaction
Returns tracing results for the specified transaction. This method uses 1000 credits from your daily balance.
Parameters
transactionHash: (string) [required] The transaction hash to trace.- Optional tracing options object with the following fields:
tracer: (string) [optional] type of tracer. SupportscallTracer.
Returns
Depending on the specified tracer type, returns a callTracer object or
prestateTracer object.
Example
Replace <YOUR-API-KEY> with an API key from your MetaMask Developer dashboard.
Request
- curl
- WSS
curl https://hyperevm-mainnet.infura.io/v3/<YOUR-API-KEY> \
-X POST \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","method":"debug_traceTransaction","params":["0xbb3a336e3f823ec18197f1e13ee875700f08f03e2cab75f0d0b118dabb44cba0",{"tracer":"callTracer"}],"id":1}'
wscat -c wss://hyperevm-mainnet.infura.io/ws/v3/<YOUR-API-KEY> -x '{"jsonrpc":"2.0","method":"debug_traceTransaction","params":["0xbb3a336e3f823ec18197f1e13ee875700f08f03e2cab75f0d0b118dabb44cba0",{"tracer":"callTracer"}],"id":1}'
Response
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"from": "0xa5ba45f484bc67fe293cf01f7d92d5ba3514dd42",
"gas": "0x5208",
"gasUsed": "0x5208",
"input": "0x",
"to": "0x45a318273749d6eb00f5f6ca3bc7cd3de26d642a",
"type": "CALL",
"value": "0x2ca186f5fda8004"
}
}