trace_transaction
Returns all traces of given transaction.

Params - a string array containing (required):
  • DATA(hex string, required) - Transaction hash

Array - Traces of given transaction.
  • blockHash(hex string). DATA, 32 Bytes - hash of the block.
  • blockNumber(hex string). QUANTITY - the block number.
  • transactionHash(hex string). DATA, 32 Bytes - hash of the transactions.
  • action(object). DATA, 32 Bytes - hash of the transactions
    • callType(string). type of method, such as "call", "delegatecall".
    • from(hex string). DATA, 20 Bytes - address of the sender.
    • to(hex string). DATA, 20 Bytes - address of the receiver. null when its a contract creation transaction.
    • gas(hex string) . QUANTITY - the amount of gas used by transaction.
    • input(hex string). DATA - the data send along with the transaction.
    • value(hex string). QUANTITY - value transferred in Wei.
  • result(object). DATA - Transaction result.
    • gasUsed(hex string) . QUANTITY - the amount of gas used by transaction.
    • output(hex string). DATA - Return value of the contract call. Contains only the actual value sent by a RETURN operation. If a RETURN was not executed, the output is empty bytes.
  • subTraces(hex string). - Traces of contract calls made by the transaction.
  • traceAddress(Array). - Tree list address of where the call occurred, address of the parents, and order of the current sub call.
  • type(string). type of method, such as call or create.

curl https://api.blockvision.org/v1/<api key> \
-X POST \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"method": "trace_transaction",
"params": [
"0xf8fd8d2f360caf4a760337a44991596db2a3fec788de9c8e85a8ccf36807d6f2"
],
"id": 1
}'

{
"jsonrpc": "2.0",
"id": 0,
"result": [
{
"action": {
"from": "0xb603da66c08d3d316b3462614cdab768217147c5",
"callType": "call",
"gas": "0x0",
"input": "0x",
"to": "0x06bcc078233082021df764a1d5a35a423403d965",
"value": "0x43b60f3cc63000"
},
"blockHash": "0x456d5b45bad8bc67c43216fb6af40aa33c7b3b6addc9fb4864fa0862dc72978b",
"blockNumber": 15489631,
"result": {
"gasUsed": "0x0",
"output": "0x"
},
"subtraces": 0,
"traceAddress": [],
"transactionHash": "0xf8fd8d2f360caf4a760337a44991596db2a3fec788de9c8e85a8ccf36807d6f2",
"transactionPosition": 121,
"type": "call"
}
]
}
Copy link
On this page
Parameters
Returns
Example
Request
Result