Skip to main content
POST
https://api.blockdb.io
/
v1
/
evm
/
raw
/
transactions
curl -X POST "https://api.blockdb.io/v1/evm/raw/transactions" \
  -H "Authorization: Bearer $BLOCKDB_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "chain_id": 1,
  "from_block": 12345678,
  "to_block": 12345999,
  "from_timestamp": "2025-10-29T00:00:00Z",
  "to_timestamp": "2025-11-11T00:00:00Z",
  "block_numbers": [
    12345678,
    12345679
  ],
  "tx_hashes": [
    "7b5c0972efb6a0b5be4a4d4a0de5d1abd922478a53f32b2c717a800c862ba9e0"
  ],
  "from_addresses": [
    "0000000000000000000000000000000000000000"
  ],
  "to_addresses": [
    "0000000000000000000000000000000000000001"
  ],
  "created_contract_addresses": [
    "0000000000000000000000000000000000000002"
  ],
  "status_success": true,
  "tx_types": [
    0,
    1,
    2
  ],
  "limit": 200,
  "cursor": null
}'
{
  "chain_id": 1,
  "meta": {
    "request_window": {
      "from_block": 12345678,
      "to_block": 12345999,
      "from_timestamp": "2025-10-29T00:00:00Z",
      "to_timestamp": "2025-11-11T00:00:00Z"
    },
    "filters": {
      "block_numbers": [
        12345678,
        12345679
      ],
      "tx_hashes": [
        "7b5c0972efb6a0b5be4a4d4a0de5d1abd922478a53f32b2c717a800c862ba9e0"
      ],
      "from_addresses": [
        "0000000000000000000000000000000000000000"
      ],
      "to_addresses": [
        "0000000000000000000000000000000000000001"
      ],
      "created_contract_addresses": [
        "0000000000000000000000000000000000000002"
      ],
      "status_success": true,
      "tx_types": [
        0,
        1,
        2
      ]
    }
  },
  "data": [
    {
      "block_number": 12345678,
      "block_hash": "f78e26c5959a94d6a62ed3837f5dcecf0d3761bf0a502e12a08fd7bc44c8568d",
      "block_time": "2025-11-11T18:42:15.123Z",
      "tx_hash": "7b5c0972efb6a0b5be4a4d4a0de5d1abd922478a53f32b2c717a800c862ba9e0",
      "tx_index": 4,
      "from_address": "0000000000000000000000000000000000000000",
      "to_address": "0000000000000000000000000000000000000001",
      "created_contract_address": null,
      "gas_used": 21000,
      "effective_gas_price_wei": "1234567890123456789",
      "status_success": true,
      "root": null,
      "tx_type": 2,
      "_tracing_id": "010200000000000000000000000000000000",
      "_created_at": "2025-11-11T18:42:15.123Z",
      "_updated_at": "2025-11-11T18:42:15.123Z"
    },
    ...
  ],
  "cursor": null,
  "count": 1
  }

Description

Retrieves canonical EVM transactions with execution metadata, gas accounting, and lineage.

Parameters

chain_id
number
required
Target EVM network. See the Chain enumeration for supported values.

Range Filters (mutually exclusive)

from_block
number
Starting block number (inclusive) for the query. Use with to_block.
to_block
number
Ending block number (inclusive) for the query. Use with from_block.
from_timestamp
string
Starting timestamp (ISO-8601). If it falls between blocks, the next block after this timestamp is used. Use with to_timestamp.
to_timestamp
string
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

block_numbers
number[]
Explicit set of block numbers. Mutually exclusive with tx_hashes.
tx_hashes
string[]
Explicit set of transaction hashes (hex string, 32 bytes, no 0x prefix). Mutually exclusive with block_numbers.

Address & Type Filters

from_addresses
string[]
Filter by sender address (20 bytes, hex string, no 0x prefix).
to_addresses
string[]
Filter by recipient address (20 bytes, hex string, no 0x prefix). Contract-creation transactions set to_address to null and are excluded when this filter is present.
created_contract_addresses
string[]
Filter by contract addresses created by the transaction.
status_success
boolean
Filter by execution status (true = success, false = revert). Omit to include pre-Byzantium transactions with null status.
tx_types
number[]
Filter by transaction type ID (e.g., 2 = EIP-1559, 1 = legacy).

Pagination Controls

limit
number
default:"250"
Recommended default 250; maximum 1000 to stay under ~10 MB responses.
cursor
string
Opaque pagination cursor supplied by a previous response.

Response Fields

chain_id
number
EVM chain ID echoed at the response root.

Meta

meta
object
Echo of request metadata applied to the response.
meta.request_window
object
Block/timestamp bounds derived from the request.
meta.filters
object
Filter parameters (block numbers, hashes, addresses, status flags) echoed from the request.

Data

data
object[]
Array of transaction objects.
data.block_number
number
Block height containing the transaction.
data.block_hash
string
Keccak-256 hash of the block containing the transaction (32 bytes, hex string, no 0x prefix).
data.block_time
string
Block timestamp joined from the blocks table for easier aggregation.
data.tx_hash
string
Keccak-256 hash of the transaction (32 bytes, hex string, no 0x prefix).
data.tx_index
number
Zero-based index within the block; directly verifiable from RLP.
data.from_address
string
Sender address (20 bytes).
data.to_address
string
Recipient address (20 bytes). null denotes contract creation.
data.created_contract_address
string
Address of the contract created by this transaction.
data.gas_used
number
Gas consumed by the transaction.
data.effective_gas_price_wei
string
Effective gas price paid, expressed in wei (string to preserve precision).
data.status_success
boolean
Execution status: true = success, false = revert, null for pre-Byzantium blocks.
data.root
string
Post-transaction state root for pre-Byzantium blocks (32 bytes).
data.tx_type
number
Transaction type identifier (e.g., 2 = EIP-1559, 1 = legacy).
data._tracing_id
string
Tracing identifier for the canonical transaction record (hex string, no 0x prefix).
data._updated_at
string
Record last update timestamp.
data._created_at
string
Record creation timestamp.

Envelope Fields

cursor
string | null
Cursor token for pagination.
count
number
Number of records returned in data.
curl -X POST "https://api.blockdb.io/v1/evm/raw/transactions" \
  -H "Authorization: Bearer $BLOCKDB_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "chain_id": 1,
  "from_block": 12345678,
  "to_block": 12345999,
  "from_timestamp": "2025-10-29T00:00:00Z",
  "to_timestamp": "2025-11-11T00:00:00Z",
  "block_numbers": [
    12345678,
    12345679
  ],
  "tx_hashes": [
    "7b5c0972efb6a0b5be4a4d4a0de5d1abd922478a53f32b2c717a800c862ba9e0"
  ],
  "from_addresses": [
    "0000000000000000000000000000000000000000"
  ],
  "to_addresses": [
    "0000000000000000000000000000000000000001"
  ],
  "created_contract_addresses": [
    "0000000000000000000000000000000000000002"
  ],
  "status_success": true,
  "tx_types": [
    0,
    1,
    2
  ],
  "limit": 200,
  "cursor": null
}'
{
  "chain_id": 1,
  "meta": {
    "request_window": {
      "from_block": 12345678,
      "to_block": 12345999,
      "from_timestamp": "2025-10-29T00:00:00Z",
      "to_timestamp": "2025-11-11T00:00:00Z"
    },
    "filters": {
      "block_numbers": [
        12345678,
        12345679
      ],
      "tx_hashes": [
        "7b5c0972efb6a0b5be4a4d4a0de5d1abd922478a53f32b2c717a800c862ba9e0"
      ],
      "from_addresses": [
        "0000000000000000000000000000000000000000"
      ],
      "to_addresses": [
        "0000000000000000000000000000000000000001"
      ],
      "created_contract_addresses": [
        "0000000000000000000000000000000000000002"
      ],
      "status_success": true,
      "tx_types": [
        0,
        1,
        2
      ]
    }
  },
  "data": [
    {
      "block_number": 12345678,
      "block_hash": "f78e26c5959a94d6a62ed3837f5dcecf0d3761bf0a502e12a08fd7bc44c8568d",
      "block_time": "2025-11-11T18:42:15.123Z",
      "tx_hash": "7b5c0972efb6a0b5be4a4d4a0de5d1abd922478a53f32b2c717a800c862ba9e0",
      "tx_index": 4,
      "from_address": "0000000000000000000000000000000000000000",
      "to_address": "0000000000000000000000000000000000000001",
      "created_contract_address": null,
      "gas_used": 21000,
      "effective_gas_price_wei": "1234567890123456789",
      "status_success": true,
      "root": null,
      "tx_type": 2,
      "_tracing_id": "010200000000000000000000000000000000",
      "_created_at": "2025-11-11T18:42:15.123Z",
      "_updated_at": "2025-11-11T18:42:15.123Z"
    },
    ...
  ],
  "cursor": null,
  "count": 1
  }