BlockPI Network
Search
⌃K

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 and prestateTracer

Returns:

Array - Block traces

Example:

// Request
curl https://polygon.blockpi.network/v1/rpc/your-rpc-key -X POST -H "Content-Type: application/json" --data '{"method":"debug_traceTransaction","params":["0x03a30d3914353054ad95fa285b0b8c17736db099910ca64e4e4fddafefd3190f", {"tracer": "callTracer"}],"id":1,"jsonrpc":"2.0"}'
​
// Result
{
"jsonrpc": "2.0",
"id": 1,
"result": -
}