Docs
Supported ChainsFlow EVM GatewayJSON-RPC APIDebug Methods

debug_traceBlockByHash - Flow EVM RPC Method

Trace all transactions in a block by hash on Flow EVM Gateway. Requires archive node.

Traces all transactions in a block on Flow EVM Gateway by block hash.

Archive Node Required

This method requires an archive node. It is not available on full nodes.

Request Parameters

Request
blockHashDATA

32-byte block hash

tracerConfigObject

Tracer configuration

Response Body

Response

Code Examples

Bash
curl -X POST https://api-flow-evm-gateway-mainnet.n.dwellir.com/YOUR_API_KEY \
  -H "Content-Type: application/json" \
  -d '{
    "jsonrpc": "2.0",
    "method": "debug_traceBlockByHash",
    "params": ["0xee0158dc7a2e89b3de711f135d5d39f2bf5fa407233501c4b58a065bfe7089b8", {"tracer": "callTracer"}],
    "id": 1
  }'
JavaScript
import { JsonRpcProvider } from 'ethers';

const provider = new JsonRpcProvider('https://api-flow-evm-gateway-mainnet.n.dwellir.com/YOUR_API_KEY');

const blockHash = '0xee0158dc7a2e89b3de711f135d5d39f2bf5fa407233501c4b58a065bfe7089b8';
const traces = await provider.send('debug_traceBlockByHash', [blockHash, { tracer: 'callTracer' }]);
console.log('Transaction traces:', traces.length);

On this page