|
1 | | -## [Blockchair.com](https://blockchair.com/) API v.2.0.7 - документация |
| 1 | +## [Blockchair.com](https://blockchair.com/) API v.2.0.8 - документация |
2 | 2 |
|
3 | 3 |  |
4 | 4 |
|
|
29 | 29 | + [Статистика по всем блокчейнам](#stats) |
30 | 30 | + [Пример](#пример-работы-с-api) |
31 | 31 | + [Broadcasting transactions](#broadcasting-transactions) |
| 32 | ++ [Retrieving raw transactions](#retrieving-raw-transactions) |
32 | 33 | + [Поддержка](#поддержка) |
33 | 34 |
|
34 | 35 | ### Changelog |
35 | 36 |
|
| 37 | +* v.2.0.8 - Nov 26th - Add the ability to retrieve raw transaction data in hex, see [Retrieving raw transactions](#retrieving-raw-transactions) |
36 | 38 | * v.2.0.7 - Nov 22th - Now it's possible to broadcast transactions using our API, see [Broadcasting transactions](#broadcasting-transactions) |
37 | 39 | * v.2.0.6 - 8 октября - В бета-режиме добавлена возможность агрегировать информацию из блокчейнов, см. `Поддержка агрегирования данных` ниже |
38 | 40 | * v.2.0.5 - 8 октября - Исправлен баг с подсчётом `balance` и `received` у bitcoin[-cash]|litecoin-адресов в колле `{chain}/dashboards/address/{address}`, когда имелись специфические неподтверждённые транзакции |
@@ -682,6 +684,14 @@ Example of a successful response: |
682 | 684 | {"data":{"transaction_hash": "0e3e2357e806b6cdb1f70b54c3a3a17b6714ee1f0e68bebb44a74b1efd512098…"},"context":{"code":200,… |
683 | 685 | ``` |
684 | 686 |
|
| 687 | +### Retrieving raw transactions |
| 688 | + |
| 689 | +It's possible to get raw transaction data directly from our nodes. In order to do this you should make the following API call: `https://api.blockchair.com/{chain}/raw/transaction/{txhash}` (where `{chain}` can be one of those: `bitcoin`, `bitcoin-cash`, `ethereum`, and `litecoin`) |
| 690 | + |
| 691 | +The response contains two keys which are: |
| 692 | +* `raw_transaction` - raw transaction represented as hex string |
| 693 | +* `decoded_raw_transaction` (not available for Ethereum) - raw transaction encoded in JSON by our nodes. Please not that the structure of this JSON array may change as we upgrade our nodes, and this won't be reflected in our change logs. |
| 694 | + |
685 | 695 | ### Поддержка |
686 | 696 |
|
687 | 697 | * E-mail: [info@blockchair.com](mailto:info@blockchair.com) |
|
0 commit comments