trace_block
Returns traces created at given block.

Params - a string array containing (required):
  • QUANTITY|TAG(hex string|string, required) - integer of a block number, or the string “latest”, “earliest” or “pending”, see the default block parameter

Array - Array of block traces objects.
  • 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_block",
"params": [
"0x3ef221"
],
"id": 1
}'

{
"id": 1,
"jsonrpc": "2.0",
"result": [
{
"action":{
"from":"0xd24400ae8bfebb18ca49be86258a3c749cf46853",
"callType":"call",
"gas":"0x10d88",
"input":"0x",
"to":"0xd4d37d2bcb81ab7f464d12950e7438d506cab22c",
"value":"0xaeb470370400000"
},
"blockHash":"0x5fcaae41fe3355fc6b446df5780485af1b3aaf8408b658f2783582327189ad4b",
"blockNumber":4125217,
"result":{
"gasUsed":"0x0",
"output":"0x"
},
"subtraces":0,
"traceAddress":[
],
"transactionHash":"0x47a7be787e7872825ea939001e20347c2ef2f7501cb6fef3048a9c337a8629f7",
"transactionPosition":0,
"type":"call"
},
{
...
}
]
}
Copy link
On this page
Parameters
Returns
Example
Request
Result