trace_get
Returns trace at given position.

Params - a string array containing (required):
  • Array - Index positions of the traces.
  • DATA(hex string, required) - Transaction hash

Object - Trace object.
  • 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_get",
"params": [
"0x17104ac9d3312d8c136b7f44d4b8b47852618065ebfa534bd2d3b5ef218ca1f3",
["0x0"]
],
"id": 1
}'

{
"jsonrpc": "2.0",
"id": 0,
"result": {
"action": {
"from": "0x1c39ba39e4735cb65978d4db400ddd70a72dc750",
"callType": "call",
"gas": "0x13e99",
"input": "0x16c72721",
"to": "0x2bd2326c993dfaef84f696526064ff22eba5b362",
"value": "0x0"
},
"blockHash": "0x7eb25504e4c202cf3d62fd585d3e238f592c780cca82dacb2ed3cb5b38883add",
"blockNumber": 3068185,
"result": {
"gasUsed": "0x183",
"output": "0x0000000000000000000000000000000000000000000000000000000000000001"
},
"subtraces": 0,
"traceAddress": [
0
],
"transactionHash": "0x17104ac9d3312d8c136b7f44d4b8b47852618065ebfa534bd2d3b5ef218ca1f3",
"transactionPosition": 2,
"type": "call"
}
}
Copy link
On this page
Parameters
Returns
Example
Request
Result