-
Notifications
You must be signed in to change notification settings - Fork 385
Description
Description
When querying the /dashboards/transaction/{:hash} endpoint for a transaction that is currently present in the mempool (i.e., visible via the Blockchair web interface with zero confirmations), the API returns an empty data array ("data": []).
This contradicts the official documentation, which states that mempool transactions should return a result where data.{:hash}.transaction.block_id yields -1. The current behavior incorrectly indicates that the transaction is "neither present in the blockchain, nor in the mempool."
Endpoint
Expected Behavior (Per Documentation)
For a transaction currently in the mempool (0 confirmations), the API should return data, including:
data.{:hash}.transaction.block_id: -1
Actual Behavior (Reproduced with hash 5f9b5e4adce4e02fba07da67d4644c7bb75102c12a7225cbff5a23d47435b710)
The transaction is successfully found and displayed on the Blockchair web interface. However, the API returns a successful status code (200), but the data array is empty.
Actual API Response:
JSON
{
"data": [],
"context": {
"code": 200,
"source": "D",
"results": 0,
"state": 922004,
"market_price_usd": 107829,
"cache": {
"live": false,
"duration": 30,
"since": "2025-11-03 05:44:39",
"until": "2025-11-03 05:45:09",
"time": 1.9073486328125E-6
},
"api": {
"version": "2.0.95-ie",
"last_major_update": "2022-11-07 02:00:00",
"next_major_update": "2023-11-12 02:00:00",
"documentation": "https://blockchair.com/api/docs",
"notice": "Try out our new API v.3: https://3xpl.com/data"
},
"servers": "API4,BTC5",
"time": 0.032195091247559,
"render_time": 0.0065979957580566,
"full_time": 0.0065999031066895,
"request_cost": 1
}
}
Steps to Reproduce
Locate a recent, unconfirmed transaction hash (confirmations = 0) on the Blockchair web interface.
Formulate the API request: https://api.blockchair.com/bitcoin/dashboards/transaction/5f9b5e4adce4e02fba07da67d4644c7bb75102c12a7225cbff5a23d47435b710
Execute the request and observe the empty data array.