-
Notifications
You must be signed in to change notification settings - Fork 385
Stolen Bitcoin on blockchain #467
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: revert-148-patch-2
Are you sure you want to change the base?
Changes from all commits
6fed3ca
14bcba9
fc3fb54
ada0177
a6dfd67
4d2378e
c4fbf02
8d031fb
204246f
374b4d5
feaff3c
c42938e
926da74
c42a963
31c4f20
0bd1e3b
1b496bf
4bc6daa
62b268e
38bd071
4f09884
33c766c
5d65b67
91e826b
7ceb702
b0a9bd6
f7603ca
02f854b
c938c3a
0104513
fe58832
661b032
861479a
7a0d007
8b5aa5a
477fa14
d6a1af1
f8616bb
10960fd
6b2cfba
b0e7b2a
7a41f01
2cba34f
438915d
5ccbaf9
d450b31
9708ed1
353d829
710a80c
e984806
89cf956
d6318c3
8030c4a
a8e490c
50cc4d4
d17406f
ec213ae
bc711bc
2d2c8e2
fd02951
5abe532
6dec269
f0c3bac
b61819e
a229a0e
215ea8a
b8546ea
63fee16
bb078c6
d24c801
f59df74
434bb09
2116f0d
829bee4
523c110
ceb06a7
556ce2d
ea29424
bb2c52a
762f662
1fca151
7dc7b19
10feb63
a53ec4f
c6ae952
673c1c8
ad5abf5
a056f6f
f81184d
7570bba
883a10f
5bd940f
b42aa99
adcf5d3
c83d078
97bb040
67641a4
8ad7d8f
c3eb347
1290b2c
2222c02
eee332f
74a0891
aaae868
8542408
0ad3b82
47aa469
5123cb1
05327d2
6a2937a
35cf908
f4c90bb
d2a7154
9f80020
22222dc
ca4cbc3
2ad3b83
1bf7b3e
f2c542c
1a9b0fd
a3d979e
c1ce840
f5c3705
f3caf61
5f67dbf
e7fc5af
f1207bd
29ba128
c1db880
113d79c
a359d80
f1a0bec
0770a50
28db117
2ae7b49
c18cb43
e22624d
a08ae35
fdb6e4a
f5059ab
06bd768
54e1bec
99d03ba
cb75c2c
eeea7b1
9b68ebf
7ecd0d3
7f5f34d
b66c1ad
7efaa15
b54da1f
698fc64
2672cb4
4c122fb
6c7b394
f269c18
9805c5a
130c0dc
ab0ca3b
ee3391a
76104b3
070823f
f6ccde1
0d49448
4c76d17
5d2c1cd
d270d06
7f48862
70957fc
09516b8
e37f3de
c3da2c0
353e922
425be52
df5460e
ba8500a
7a2e988
ea403a5
dbd5d50
64cff8f
a72c5a4
a6812a5
517627e
c385d30
95bec7d
b6209cb
c11daec
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,6 @@ | ||
| ## [Blockchair.com](https://blockchair.com/) API v.2.0.6 - документация | ||
| ## [Blockchair.com](https://blockchair.com/) API v.2.0.10 - документация | ||
|
|
||
|  | ||
|  | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
|
|
||
| ### Содержание | ||
|
|
||
|
|
@@ -27,24 +27,49 @@ | |
| + [Адрес Ethereum](#ethereumdashboardsaddressa) | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Great idea |
||
| + [Статистика](#bitcoin-cashlitecoinethereumstats) | ||
| + [Статистика по всем блокчейнам](#stats) | ||
| + [Статистика сети](#bitcoin-cashlitecoinnodes) | ||
| + [Пример](#пример-работы-с-api) | ||
| + [Рассылка транзакций](#рассылка-транзакций) | ||
| + [Получение транзакций в сыром виде](#получение-транзакций-в-сыром-виде) | ||
| + [Поддержка](#поддержка) | ||
|
|
||
| ### Changelog | ||
|
|
||
| * v.2.0.10 - Jan 29th 2019 - Added [Dogecoin support](#dogecoin-support-since-jan-29th-2019) in test mode | ||
| * v.2.0.9 - 12 декабря - Добавлена [поддержка Bitcoin SV](#поддержка-bitcoin-sv-с-12-декабря) в тестовом режиме; обновлены возможности [агрегации данных](#поддержка-агрегирования-данных-с-8-октября) | ||
| * v.2.0.8 - 26 ноября - Появилась возможность получать транзакции в сыром виде, см. [Получение транзакций в сыром виде](#получение-транзакций-в-сыром-виде) | ||
| * v.2.0.7 - 22 ноября - Появилась возможность рассылать транзакции через API, см. [Рассылка транзакций](#рассылка-транзакций) | ||
| * v.2.0.6 - 8 октября - В бета-режиме добавлена возможность агрегировать информацию из блокчейнов, см. `Поддержка агрегирования данных` ниже | ||
| * v.2.0.5 - 8 октября - Исправлен баг с подсчётом `balance` и `received` у bitcoin[-cash]|litecoin-адресов в колле `{chain}/dashboards/address/{address}`, когда имелись специфические неподтверждённые транзакции | ||
| * v.2.0.4 - 3 октября - Добавлены некоторые полезные поля к коллам `{chain}/stats` | ||
| * v.2.0.3 - 18 сентября - Добавлен ключ `context.api.tested_features` со списком тестируемых фич, поддерживаемых нашим API (у тестируемых фич нет гарантий поддержки в будущем, гарантий, что в какой-то момент не потеряется совместимость при обновлении). Добавлена поддержка Omni Layer и Wormhole в режиме тестирования (см. ниже) | ||
| * v.2.0.2 - 9 сентября - Добавлено поле `address.contract_created` для колла `ethereum/dashboards/address/{A}` | ||
| * v.2.0.1 - 1 сентября - Добавлена поддержка Litecoin | ||
| * v.2.0.1 - 1 сентября 2018 - Добавлена поддержка Litecoin | ||
|
|
||
| ### Changelog тестируемых фич | ||
|
|
||
| ##### Поддержка агрегирования данных (с 8 октября) | ||
| ##### Dogecoin support (since Jan 29th 2019) | ||
|
|
||
| * v.rc3 - Feb 5th - It's now possible to retrieve the list of Dogecoin nodes using the `dogecoin/nodes` call (the output format is compatible with other coins) | ||
| * v.rc2 - Feb 2nd - Groundhog Day! Unlike for other coins, the latest Dogecoin block along with its transactions isn't stored in `mempool` tables anymore. `dogecoin/mempool/blocks` is now deprecated, while `dogecoin/mempool/transactions` and `dogecoin/mempool/outputs` show only mempool data. | ||
| * v.rc1 - Jan 29th - We're now processing the Dogecoin chain. All API calls are fully compatible with Bitcoin Cash (i.e. replace `bitcoin-cash` with `dogecoin` in URLs) with a few exceptions: | ||
| * There's no node list for Dogecoin yet; | ||
| * The `blocks` table has one additional field called `is_aux` - it is a boolean field showing whether a block was mined using AuxPoW. | ||
|
|
||
| It is expected that Dogecoin will be out of beta mode very soon. Wow. | ||
|
|
||
| ##### Поддержка Bitcoin SV (с 12 декабря) | ||
|
|
||
| * v.b1 - 12 декабря - Ура! Теперь мы предоставляем данные по Bitcoin SV (BSV). Все API-вызовы совместимы с таковыми для Bitcoin Cash, например, если вы хотите получить последние nulldata-выходы (OP_RETURN), то просто замените `bitcoin-cash` на `bitcoin-sv`: https://api.blockchair.com/bitcoin-sv/outputs?q=type(nulldata)# | ||
|
|
||
| Пожалуйста, имейте в виду, что поддержка Bitcoin SV осуществляется в тестовом режиме и не предназначена для использования в рабочей среде, пока Bitcoin SV не продемонстрирует более конструктивную дорожную карту (например, мы не сможем предоставить некоторый функционал, если блоки внезапно увеличатся до 1 экзабайта...) | ||
|
|
||
| ##### Поддержка агрегирования данных (с 8 октября 2018) | ||
|
|
||
| * v.b1 - 8 октября - Внедрение возможности получать агрегированную информацию. Теперь вы можете использовать Blockchair не только для фильтрации и сортировки информации из блокчейнов, но и для агрегации данных. | ||
|
|
||
| Пожалуйста, не используйте это в рабочей среде, могут быть фундаментальные изменения! | ||
|
|
||
| См. примеры: | ||
| * https://api.blockchair.com/bitcoin/blocks?a=year,count()# - выдаёт количество блоков в Bitcoin по годам | ||
| * https://api.blockchair.com/bitcoin/transactions?a=month,median(fee_usd)# - медианные комиссии за транзакции в Bitcoin по месяцам | ||
|
|
@@ -649,6 +674,17 @@ API поддерживает ряд коллов, которые выдают к | |
| * `ethereum/stats` | ||
| * `litecoin/stats` | ||
|
|
||
| #### (bitcoin[-cash]|litecoin)/nodes | ||
| Возвращает информацию о доступных нодах. | ||
| * `nodes` - ноды | ||
| * `version` - User Agent клиента | ||
| * `country` - страна (определяется по GeoIP) | ||
| * `height` - последний блок в цепочке ноды | ||
| * `flags` - флаги [сервисов](https://en.bitcoin.it/wiki/Protocol_documentation#version) | ||
| * `count` - количество | ||
| * `countries` - количество нод по странам | ||
| * `versions` - количество нод по User Agent | ||
|
|
||
| ### Пример работы с API | ||
|
|
||
| Допустим, нам требуется получать все последние транзакции из блокчейна Эфириума на сумму более 1 млн. долларов. Для этого необходимо составить следующий запрос: | ||
|
|
@@ -664,6 +700,30 @@ API поддерживает ряд коллов, которые выдают к | |
|
|
||
| Увеличиваем значение offset пока не получим выборку с транзакцией, о которой мы уже знали. | ||
|
|
||
| ### Рассылка транзакций | ||
|
|
||
| Для рассылки транзакции по сети, нужно выполнить POST-запрос к `https://api.blockchair.com/{chain}/push/transaction` (где `{chain}` может быть: `bitcoin`, `bitcoin-cash`, `ethereum`, или `litecoin`) с `data`, содержащим транзакцию в сыром шестнадцатеричном виде (в Ethereum начинается с `0x`). Пример: | ||
|
|
||
| ``` | ||
| curl -v --data "data=01000000010000000000000000000000000000000000000000000000000000000000000000ffffffff0704ffff001d0104ffffffff0100f2052a0100000043410496b538e853519c726a2c91e61ec11600ae1390813a627c66fb8be7947be63c52da7589379515d4e0a604f8141781e62294721166bf621e73a82cbf2342c858eeac00000000" https://api.blockchair.com/bitcoin/push/transaction | ||
| ``` | ||
|
|
||
| Если транзакция была успешно разослана по сети, API вернёт JSON-ответ (код 200), содержищий массив `data` с ключом `transaction_hash`, содержащим хеш самой транзакции. В случае ошибки (неправильный формат транзакции, трата уже потраченных выходов, и т.д.) API вернёт код 400. | ||
|
|
||
| Пример успешного ответа: | ||
|
|
||
| ``` | ||
| {"data":{"transaction_hash": "0e3e2357e806b6cdb1f70b54c3a3a17b6714ee1f0e68bebb44a74b1efd512098…"},"context":{"code":200,… | ||
| ``` | ||
|
|
||
| ### Получение транзакций в сыром виде | ||
|
|
||
| Можно получить транзакцию в сыром виде напрямую от наших нод. Для этого требуется выполнить следующий API-запрос: `https://api.blockchair.com/{chain}/raw/transaction/{txhash}` (где `{chain}` может быть: `bitcoin`, `bitcoin-cash`, `ethereum`, или `litecoin`) | ||
|
|
||
| Ответ содержит два ключа: | ||
| * `raw_transaction` — транзакция в сыром виде в шестнадцатеричной с.и.; | ||
| * `decoded_raw_transaction` (недоступно для Ethereum) — транзакция в сыром виде в JSON. Пожалуйста, имейте в виду, что структура JSON-массива может измениться с обновлением наших нод, и это не будет отмечено в журнале изменений. | ||
|
|
||
| ### Поддержка | ||
|
|
||
| * E-mail: [[email protected]](mailto:[email protected]) | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| This is a directory for images and other assets. | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,62 @@ | ||
| ###### TL;DR: Blockchair does not collect personal data or share it with third parties. We don't track you. | ||
| * * * | ||
|
|
||
| ## Why is this important? | ||
|
|
||
| **One of the key advantages of cryptocurrencies is that they enable (pseudo)anonymous transactions.** In most cases the user’s address and transaction details are made public and cannot be deleted, but their personal identity remains unknown if no link exists between the user and their blockchain data. | ||
|
|
||
| Privacy is at risk when you share any information with third parties. Cryptocurrency exchanges with KYC policies, online retailers that require delivery addresses and web wallets associated with phone numbers all require you to share information. | ||
|
|
||
| What’s more, most web servers maintain default logs of your IP address and User Agent (browser name and operating system), the dates and times of your browsing activity and, most importantly, the URLs you visited. Ordinarily, a cryptocurrency address page is only visited by the address owner, while the transaction page is visited by the transaction parties. **Blockchain explorers can therefore easily trace the digital fingerprint that links addresses and transactions. Unfortunately, this data is also picked up by the web analytics tools (Google Analytics, Baidu Tongji, Yandex.Metrica), advertising platforms and similar third-party services.** | ||
|
|
||
| User data can be traced in others ways too. CDN providers like Cloudflare, Incapsula and AWS Shield act as reverse proxies, which means some websites require you to request data from a CDN in order to use the site. You therefore share your information with the provider. | ||
|
|
||
| In addition to these data tracking services, there are several other ways how users can be identified online. | ||
|
|
||
| * HTTP referer: a client request header that allows a server to trace the previous site you visited. Say you visit example.com followed by explorer.com/1YourBitcoinAddress then the former will receive information that you have come from the latter; | ||
| * Web beacon (bug): an invisible web page element that confirms a user has visited a web page. This is used to collect user analytics; | ||
| * Cookies: user activity data stored in the user’s browser. Third-party cookies can also be embedded in the site’s code (if it contains elements from other sites); | ||
| * Evercookie: a JavaScript app that stores zombie cookies on a computer. These cookies are extremely difficult to remove since Evercookie recreates them whenever they are deleted; | ||
| * Device / browser fingerprint: the device and browser information collected for user identification; | ||
| * Browser extensions. | ||
|
|
||
| * * * | ||
|
|
||
| ## Why is it unsafe to share you personal data? | ||
|
|
||
| Most blockchain explorers and cryptocurrency companies store user information, including available balances, lists of transactions and types of cryptocurrency. | ||
|
|
||
| They might sell this information, publish it, share it with government agencies, or they might be hacked. If it becomes public knowledge that you have significant funds stored in cryptocurrency, you’re likely to be targeted by cyber criminals. Your personal safety may be at risk too. | ||
|
|
||
| * * * | ||
|
|
||
| ## Why is Blockchair the safer option? | ||
|
|
||
| * When you connect to Blockchair your browser automatically sends us information about your computer, User Agent, IP address, and the page you want to visit. Since this data may expose your identity, **we do not permanently store information about you**; | ||
| * **We do not use third-party cookies which can be used to identify you.** We may only set our own cookies to improve your user experience and help us to fight botnets and spammers. See below for details; | ||
| * **Your browser won’t send HTTP referer headers when leaving Blockchair.com. This means you can move to other sites without your browsing activity being traced by those sites;** | ||
| * **We do not use CDN-providers, including those used to distribute JavaScript libraries and styles. We do not use any third-party site elements, web analytics tools (such as Google Analytics) and hit counters. Therefore, other parties do not receive information about you.** | ||
|
|
||
| * * * | ||
|
|
||
| ## What data do we store and how do we use this data? | ||
|
|
||
| We only collect anonymous aggregated data that allows us to improve our website features. We count visitors, analyze popular searches, cryptocurrencies, sortings and other queries. | ||
|
|
||
| We also store the incoming IP addresses in masked or clear form for short periods of 1 to 2 days. This is to limit the rate of API requests. | ||
|
|
||
| Your device may store first-party cookies, such as those that keep the night mode on, store referer information, unique visitor and session ID. | ||
|
|
||
| Collected data is used to improve user experience and compile website traffic statistics. Session data is deleted on a regular basis. | ||
|
|
||
| * * * | ||
|
|
||
| ## Privacy Policy updates | ||
|
|
||
| We will publish any updates to our Privacy Policy at this page ([https://blockchair.com/privacy](https://blockchair.com/privacy)) and in the GitHub repository at [https://github.com/Blockchair/Blockchair.Support/blob/master/PRIVACY.md](https://github.com/Blockchair/Blockchair.Support/blob/master/PRIVACY.md) plus the link to the updated version will be available at the bottom of all our site pages. | ||
|
|
||
| * * * | ||
|
|
||
| ## Contacts | ||
|
|
||
| Please share your comments and suggestions at <[email protected]>. |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -5,9 +5,9 @@ | |
| This is our public repository for issues and feature requests. Please feel free to submit any ideas as well as bugs using [the "New Issue" button](https://github.com/Blockchair/Blockchair.Support/issues/new)! | ||
|
|
||
| * API documentation and changelog: https://github.com/Blockchair/Blockchair.Support/blob/master/API.md | ||
| * Questions regarding Bitcoin / Bitcoin Cash / Ethereum / Litecoin payments? Please refer to our FAQ first: https://github.com/Blockchair/Blockchair.Support/blob/master/FAQ_PAYMENTS.md | ||
| * Direct SQL Access documentation: https://github.com/Blockchair/Blockchair.Support/blob/master/SQL.md | ||
| * Questions regarding a payment? Please refer to our FAQ first: https://github.com/Blockchair/Blockchair.Support/blob/master/FAQ_PAYMENTS.md | ||
|
|
||
| Additional contacts: | ||
| * E-mail: [[email protected]](mailto:[email protected]) | ||
| * Telegram group: [@Blockchair](https://telegram.me/Blockchair) | ||
| * Twitter: [@Blockchair](https://twitter.com/Blockchair) | ||



There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.