pub struct CallTrace {Show 15 fields
pub call_type: CallType,
pub from: String,
pub to: String,
pub value: String,
pub gas_used: u64,
pub input: String,
pub output: String,
pub function_selector: Option<String>,
pub depth: u32,
pub block_number: u64,
pub tx_hash: String,
pub tx_index: u32,
pub trace_index: u32,
pub error: Option<String>,
pub reverted: bool,
}Expand description
A single call trace (internal transaction).
Represents one node in the call tree of a transaction. Top-level external
calls have depth = 0; internal calls increment the depth.
Fields§
§call_type: CallTypeThe type of call (CALL, DELEGATECALL, CREATE, etc.).
from: StringSender address (0x…).
to: StringRecipient/target address (0x…). For CREATE, this is the new contract.
value: StringValue transferred in wei (decimal string, e.g. "1000000000000000000").
gas_used: u64Gas consumed by this call.
input: StringInput data (hex-encoded with 0x prefix).
output: StringOutput/return data (hex-encoded with 0x prefix).
function_selector: Option<String>First 4 bytes of input — the function selector (e.g. "0xa9059cbb").
None if input is too short (< 4 bytes after 0x prefix).
depth: u32Call depth: 0 for top-level, increments for nested calls.
block_number: u64Block number containing the transaction.
tx_hash: StringTransaction hash.
tx_index: u32Transaction index within the block.
trace_index: u32Trace index within the transaction (sequential ordering).
error: Option<String>Error message if the call failed.
reverted: boolWhether this call (or a parent call) was reverted.