Description
Retrieves internal transactions (call traces) produced by tracing executed transactions. Each record is one call frame: CALL, DELEGATECALL, STATICCALL, CREATE, or CREATE2, with value, gas, calldata, return data, and revert information. Use this endpoint for contract creation and factory flows, internal call graphs, value flow, debugging reverts, and MEV path reconstruction. Data corresponds to dataset 0111 and table blockdb_evm.b0111_internal_transactions_v1.
Parameters
Target EVM network. See the Chain enumeration for supported values.
Range Filters (mutually exclusive)
Starting block number (inclusive) for the query. Use with to_block.
Ending block number (inclusive) for the query. Use with from_block.
Starting timestamp (ISO-8601). If it falls between blocks, the next block after this timestamp is used. Use with to_timestamp.
Ending timestamp (ISO-8601). If it falls between blocks, the last block before this timestamp is used. Use with from_timestamp.
Validation rule:
You must provide either a block range, a time range, or explicit selectors.
Providing more than one option (e.g., both ranges or ranges plus selectors) results in HTTP 400.
Providing none results in HTTP 400.
Direct Selectors
Explicit set of block numbers. Mutually exclusive with tx_hashes.
Filter by parent transaction hash (hex string, 32 bytes, no 0x prefix). Returns all call traces for those transactions. Mutually exclusive with block_numbers.
Address & Type Filters
Filter by caller address (hex string, 20 bytes, no 0x prefix).
Filter by callee address (hex string, 20 bytes, no 0x prefix). Failed CREATE/CREATE2 may have null to_address and are excluded when this filter is present.
Filter by call type: CALL, DELEGATECALL, STATICCALL, CREATE, CREATE2. Omit to return all types.
Filter by underlying transaction success (true = success, false = reverted). Omit to return traces for both.
Recommended default 250; maximum 1000 to stay under ~10 MB responses.
Pagination cursor from a prior call.
Response Fields
Echo of request metadata applied to the response.
EVM chain ID echoed from the request.
Normalized block/timestamp bounds derived from the request.
Filter parameters echoed from the request (addresses, call_types, tx_success, pagination state, etc.).
Data
Array of internal transaction (call trace) records, ordered by block, tx index, and trace address.
Block number of the parent transaction.
UTC timestamp of the block (ISO-8601).
Zero-based index of the parent transaction within the block.
Position in the call tree (e.g. "0", "0.0", "0.1").
One of: CALL, DELEGATECALL, STATICCALL, CREATE, CREATE2.
Caller address (hex string, 20 bytes, no 0x prefix).
Callee address (hex string, 20 bytes); null for failed CREATE/CREATE2.
Native value transferred in this call, in wei (string to preserve precision).
Gas allocated for this call (string to preserve precision).
Gas consumed by this call (string to preserve precision).
Calldata for this call (hex string, no 0x prefix); null when not applicable.
Return data from the call (hex string); null if the call reverted.
Error message if the call reverted; null otherwise.
Whether the underlying transaction succeeded.
BlockDB lineage identifier (hex string, no 0x prefix).
Record creation timestamp, e.g. "2025-11-11T18:42:15.123Z".
Last update timestamp in the same format.
Envelope Fields
Cursor token for pagination.
Number of records returned in data.
curl -X POST "https://api.blockdb.io/v1/evm/raw/internal-transactions" \
-H "Authorization: Bearer $BLOCKDB_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"chain_id": 1,
"from_block": 12345678,
"to_block": 12345999,
"from_address": "0000000000000000000000000000000000000000",
"to_address": "c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
"call_types": ["CALL", "DELEGATECALL"],
"tx_success": true,
"limit": 250,
"cursor": null
}'
{
"meta": {
"chain_id": 1,
"request_window": {
"from_block": 12345678,
"to_block": 12345999,
"from_timestamp": null,
"to_timestamp": null
},
"filters": {
"from_address": "0000000000000000000000000000000000000000",
"to_address": "c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
"call_types": ["CALL", "DELEGATECALL"],
"tx_success": true,
"limit": 250,
"cursor": null
}
},
"data": [
{
"block_number": 12345680,
"block_time": "2025-10-29T00:01:23Z",
"tx_index": 5,
"trace_address": "0",
"call_type": "CALL",
"from_address": "0000000000000000000000000000000000000000",
"to_address": "c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
"value_wei": "1000000000000000000",
"gas": "100000",
"gas_used": "63546",
"input": "a9059cbb000000000000000000000000...",
"output": "0000000000000000000000000000000000000000000000000000000000000001",
"error": null,
"tx_success": true,
"_tracing_id": "0111000000000000000000000000000000000001",
"_created_at": "2025-11-11T18:42:15.123Z",
"_updated_at": "2025-11-11T18:42:15.123Z"
},
{
"block_number": 12345680,
"block_time": "2025-10-29T00:01:23Z",
"tx_index": 5,
"trace_address": "0.1",
"call_type": "DELEGATECALL",
"from_address": "c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
"to_address": "0000000000000000000000000000000000000001",
"value_wei": "0",
"gas": "72354",
"gas_used": "23412",
"input": "70a08231000000000000000000000000...",
"output": "0000000000000000000000000000000000000000000000000de0b6b3a7640000",
"error": null,
"tx_success": true,
"_tracing_id": "0111000000000000000000000000000000000002",
"_created_at": "2025-11-11T18:42:15.123Z",
"_updated_at": "2025-11-11T18:42:15.123Z"
}
],
"cursor": "next_page_cursor",
"count": 2
}