debug_traceTransaction

Attempts to run the transaction in the exact same manner as it was executed on the network.

Path parameters

apiKeystringRequired

Request

This endpoint expects an object.
Transaction hashstringRequiredformat: "^0x[0-9a-f]{64}$"

Hash of the transaction to be traced.

OptionsobjectRequired

Options for the call.

Response

Trace for the transaction.

typestringOptional

CALL or CREATE

fromstringOptional

20-byte address of the caller

tostringOptional

20-byte address of the recipient. Null when its a contract creation transaction.

valuestringOptional

Amount of value included in the transfer (in hex)

gasstringOptional

Amount of gas provided for the call (in hex)

gasUsedstringOptional

Amount of gas used during the call (in hex)

inputstringOptional

Call data

outputstringOptional

Return data

errorstringOptional

Error message, if any.

revertReasonstringOptional

Solidity revert reason, if any.

callslist of objectsOptional

Array of sub-calls made within the transaction.