TheDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/BlockRazorinc/docs_en/llms.txt
Use this file to discover all available pages before exploring further.
eth_traceBundle method retrieves a detailed execution trace for a bundle that has been submitted to BlockRazor’s Block Builder. Once your bundle has been included in a BSC block, you can query this endpoint with the bundle’s hash to receive a granular breakdown of each transaction’s execution: the full call tree, gas consumption at every frame, internal transfers, and any revert or exception data. This level of visibility is indispensable for debugging complex multi-transaction strategies, verifying that transaction ordering was respected, and auditing actual gas costs against predictions.
Bundle Tracing & Explorer is available as a standalone subscription at $1,500/month on BSC. This service provides both the
eth_traceBundle API and access to BlockRazor’s Bundle Explorer UI for visual inspection of bundle execution. See the Pricing page for details.Use Cases
Debug Reverts
Pinpoint exactly which call frame caused a revert and inspect the exact revert reason, even inside nested internal calls.
Verify Transaction Ordering
Confirm that the Block Builder included your transactions in the exact sequence you specified and that no reordering occurred.
Audit Gas Usage
Compare actual gas consumed at each execution frame against your model to refine future gas estimates and tip calculations.
Inspect Internal Transfers
Track ETH and token transfers that occur inside contract calls, including those not visible in standard transaction receipts.
Request Format
Send a standard JSON-RPC 2.0POST request with the method eth_traceBundle. You must supply the bundleHash returned by a previous eth_sendBundle call.
Parameters
The bundle hash returned by
eth_sendBundle when the bundle was originally submitted. This uniquely identifies the bundle within the Block Builder and is used to retrieve the corresponding execution trace. Ensure the bundle has already been included in a confirmed block before calling this method.Response Format
The response contains an array of execution traces, one per transaction in the bundle, in the order they were executed within the block.An array of trace objects, one per transaction in the bundle, ordered by execution sequence within the block.
The on-chain hash of this transaction.
The block number (hexadecimal) in which this transaction was included.
Total gas consumed by this transaction across all execution frames.
true if the top-level call succeeded; false if the transaction reverted.The call tree for this transaction. Each entry in the array represents a call frame, including the call type (
CALL, DELEGATECALL, STATICCALL, CREATE), the caller and callee addresses, value transferred, gas limits, input calldata, return data, and any nested sub-calls in the calls field.Example Integration
- JavaScript (fetch)
- cURL
Debugging Workflow
Submit your bundle and capture the bundle hash
After calling
eth_sendBundle, save the bundleHash from the response. You will need it to retrieve the trace.Wait for block inclusion
eth_traceBundle only returns data after the bundle’s target block has been confirmed on-chain. Poll eth_blockNumber until the target block has passed, then proceed.Call eth_traceBundle with the bundle hash
Submit the trace request with the saved
bundleHash. The Block Builder returns the full call-tree trace for every transaction in the bundle.Inspect the trace array
For each transaction, check the
success flag and gasUsed value. If success is false, inspect the trace array to locate the exact call frame that reverted and extract the revert message from the output field.