Virtual TestNets are live! ⚡️ Test and stage dapps on real-time production data.  Schedule Office Hours

debug_traceBlockByHash - Polygon Mumbai


Returns the possible tracing result number by executing all transactions in the block specified by the block hash with a tracer.


1. Block Hash BlockHash

Hash of a block to get information from
Example: 0x12345...

2. Tracer Object

Tracer String

Type of tracer, either callTracer or prestateTracer
Example: {"tracer": "callTracer"}

Only Top Call Boolean

When true, only top level call will be traced and no sub-calls.
Example: {"tracer": "callTracer", "tracerConfig": {"onlyTopCall": true}}

Code Examples