debug_traceCall - zkSync RPC Method
Trace a call without executing on zkSync Era. Requires archive node for debugging RWA tokenization ($1.9B, 25% market share), hyperchain deployment via ZK Stack, and cross-chain DeFi.
Traces a call without creating a transaction on zkSync Era.
Archive Node Required
This method requires an archive node. It is not available on full nodes.
Use Cases
- Transaction simulation - Debug before sending
- Gas analysis - Analyze gas usage per opcode
- Contract debugging - Step through execution for RWA tokenization ($1.9B, 25% market share), hyperchain deployment via ZK Stack, and cross-chain DeFi
Request Parameters
Call object (same as eth_call)
Block number or tag
Tracer configuration
Response Body
Code Examples
curl -X POST https://api-zksync-era-mainnet-full.n.dwellir.com/YOUR_API_KEY \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"method": "debug_traceCall",
"params": [
{"to": "0x5AEa5775959fBC2557Cc8789bC1bf90A239D9a91", "data": "0x70a082310000000000000000000000005AEa5775959fBC2557Cc8789bC1bf90A239D9a91"},
"latest",
{"tracer": "callTracer"}
],
"id": 1
}'import { JsonRpcProvider } from 'ethers';
const provider = new JsonRpcProvider('https://api-zksync-era-mainnet-full.n.dwellir.com/YOUR_API_KEY');
const trace = await provider.send('debug_traceCall', [
{ to: '0x5AEa5775959fBC2557Cc8789bC1bf90A239D9a91', data: '0x70a082310000000000000000000000005AEa5775959fBC2557Cc8789bC1bf90A239D9a91' },
'latest',
{ tracer: 'callTracer' }
]);
console.log('Trace:', trace);Related Methods
eth_call- Execute call without tracedebug_traceTransaction- Trace actual transaction
debug_traceBlockByNumber
Trace all transactions in a block by number on zkSync Era. Requires archive node.
debug_traceTransaction
Trace a transaction execution on zkSync Era. Requires archive node for debugging RWA tokenization ($1.9B, 25% market share), hyperchain deployment via ZK Stack, and cross-chain DeFi.