mirror of
https://github.com/bitcoinbook/bitcoinbook
synced 2024-11-12 10:58:55 +00:00
Made changes to ch02.asciidoc
This commit is contained in:
parent
338194fa18
commit
264e455a5e
@ -129,7 +129,7 @@ Alice's wallet application will first have to find inputs that can pay for the a
|
|||||||
|
|
||||||
If the wallet application does not maintain a copy of unspent transaction outputs, it can query the bitcoin network to retrieve this information, using a variety of APIs available by different providers or by asking a full-index node using the bitcoin JSON RPC API. Example 2-1 shows a RESTful API request, constructed as an HTTP GET command to a specific URL. This URL will return all the unspent transaction outputs for an address, giving any application the information it needs to construct transaction inputs for spending. We use the simple command-line HTTP client _cURL_ to retrieve the response.
|
If the wallet application does not maintain a copy of unspent transaction outputs, it can query the bitcoin network to retrieve this information, using a variety of APIs available by different providers or by asking a full-index node using the bitcoin JSON RPC API. Example 2-1 shows a RESTful API request, constructed as an HTTP GET command to a specific URL. This URL will return all the unspent transaction outputs for an address, giving any application the information it needs to construct transaction inputs for spending. We use the simple command-line HTTP client _cURL_ to retrieve the response.
|
||||||
|
|
||||||
====
|
|
||||||
.Look up all the unspent outputs for Alice's bitcoin address
|
.Look up all the unspent outputs for Alice's bitcoin address
|
||||||
[source,bash]
|
[source,bash]
|
||||||
----
|
----
|
||||||
|
Loading…
Reference in New Issue
Block a user