debug_traceTransaction
It will attempt to run the transaction in the exact same manner as it was executed on the network.
Parameters:
String - The hash of a transaction.
Object - tracer
tracer: string - the type of tracer. Currently supports
callTracer
andprestateTracer
Returns:
Array - Block traces
Example:
// Request
curl https://t3rn.blockpi.network/v1/rpc/your-rpc-key -X POST -H "Content-Type: application/json" --data '{"method":"debug_traceTransaction","params":["0xb4764d4e4dad9bba670ae09ea3e90be1e1d5d07ada2c4a93f45662948e29e6f6", {"tracer": "callTracer"}],"id":1,"jsonrpc":"2.0"}'
// Result
{
"jsonrpc": "2.0",
"id": 1,
"result": {-}
}
Last updated
Was this helpful?