mirror of
https://github.com/bitcoinbook/bitcoinbook
synced 2025-01-22 13:40:58 +00:00
CH02::getting inputs: warn about privacy for address lookup calls
This commit is contained in:
parent
fbdb840923
commit
58643749fb
@ -50,6 +50,8 @@ information from the Bitcoin network. With each transaction or block
|
|||||||
example, we will provide a URL so you can look it up yourself and study
|
example, we will provide a URL so you can look it up yourself and study
|
||||||
it in detail.
|
it in detail.
|
||||||
|
|
||||||
|
[[block-explorer-privacy]]
|
||||||
|
.Block explorer privacy warning
|
||||||
[WARNING]
|
[WARNING]
|
||||||
====
|
====
|
||||||
Searching information on a block explorer may disclose to its operator
|
Searching information on a block explorer may disclose to its operator
|
||||||
@ -354,15 +356,18 @@ However, because full nodes use more resources, most
|
|||||||
user wallets run "lightweight" clients that track only the user's own
|
user wallets run "lightweight" clients that track only the user's own
|
||||||
UTXOs.
|
UTXOs.
|
||||||
|
|
||||||
If the wallet application does not maintain a copy of unspent
|
If the wallet application does not maintain a copy of all UTXOs, it can
|
||||||
transaction outputs, it can query the Bitcoin network to retrieve this
|
query the Bitcoin network to retrieve this
|
||||||
information using a variety of APIs available by different providers or
|
information using a variety of APIs available by different providers or
|
||||||
by asking a full-node using an application programming interface (API)
|
by asking a full node using an application programming interface (API)
|
||||||
call. <<example_2-2>> shows an API request, constructed as an HTTP GET
|
call. <<example_2-2>> shows an API request, constructed as an HTTP GET
|
||||||
command to a specific URL. This URL will return all the unspent
|
command to a specific URL. This URL will return all the unspent
|
||||||
transaction outputs for an address, giving any application the
|
transaction outputs for an address, giving any application the
|
||||||
information it needs to construct transaction inputs for spending. We
|
information it needs to construct transaction inputs for spending. We
|
||||||
use the simple command-line HTTP client _cURL_ to retrieve the response.
|
use the simple command-line HTTP client _cURL_ to retrieve the response.
|
||||||
|
Note that looking up information using a third-party API like this is similar to
|
||||||
|
using a block explorer; see the privacy warning in
|
||||||
|
<<block-explorer-privacy>>.
|
||||||
|
|
||||||
[[example_2-2]]
|
[[example_2-2]]
|
||||||
.Look up all the unspent outputs for Alice's Bitcoin address
|
.Look up all the unspent outputs for Alice's Bitcoin address
|
||||||
|
Loading…
Reference in New Issue
Block a user