MCPcopy Create free account
hub / github.com/ChainSecurity/deployment_validation / get_eth_debug_call_trace

Function get_eth_debug_call_trace

lib/web3.rs:174–189  ·  view source on GitHub ↗
(
    config: &DVFConfig,
    tx_id: &str,
)

Source from the content-addressed store, hash-verified

172 Err(ValidationError::from("Cannot determine create addresses"))
173}
174pub fn get_eth_debug_call_trace(
175 config: &DVFConfig,
176 tx_id: &str,
177) -> Result<CallFrame, ValidationError> {
178 debug!("Searching debug trace for {tx_id}");
179 let request_body = json!({
180 "jsonrpc": "2.0",
181 "method": "debug_traceTransaction",
182 "params": [tx_id, {"tracer": "callTracer"}],
183 "id": 1
184 });
185 let result = send_blocking_web3_post(config, &request_body)?;
186 // Parse the response as a JSON list
187 let trace: CallFrame = serde_json::from_value(result)?;
188 Ok(trace)
189}
190
191pub fn get_eth_debug_trace(
192 config: &DVFConfig,

Callers 4

get_init_codeFunction · 0.85
tx_geth_trace_containsFunction · 0.85

Calls 1

send_blocking_web3_postFunction · 0.85

Tested by

no test coverage detected