curl --request POST \
--url https://rpc.testnet.tempo.xyz/ \
--header 'Content-Type: application/json' \
--data '
{
"jsonrpc": "2.0",
"method": "debug_traceTransaction",
"params": [
"0xb3e821e696897b02283b7b2d602941b1d3cb08448d3a204bab05955215fc2035",
{}
],
"id": 1
}
'{
"jsonrpc": "<string>",
"id": 123,
"result": {}
}curl --request POST \
--url https://rpc.testnet.tempo.xyz/ \
--header 'Content-Type: application/json' \
--data '
{
"jsonrpc": "2.0",
"method": "debug_traceTransaction",
"params": [
"0xb3e821e696897b02283b7b2d602941b1d3cb08448d3a204bab05955215fc2035",
{}
],
"id": 1
}
'{
"jsonrpc": "<string>",
"id": 123,
"result": {}
}transactionHash — the hash of the transaction to tracetracerConfig — (optional) tracer configuration object:
tracer — tracer type (e.g., callTracer, prestateTracer)timeout — (optional) timeout for the traceresult — the trace result object, format depends on the tracer useddebug_traceTransaction code examplesconst ethers = require('ethers');
const NODE_URL = "CHAINSTACK_NODE_URL";
const provider = new ethers.JsonRpcProvider(NODE_URL);
const traceTransaction = async (txHash) => {
const trace = await provider.send("debug_traceTransaction", [
txHash,
{ tracer: "callTracer" }
]);
console.log(JSON.stringify(trace, null, 2));
};
traceTransaction("0xb3e821e696897b02283b7b2d602941b1d3cb08448d3a204bab05955215fc2035");
Was this page helpful?