Changeset View
Changeset View
Standalone View
Standalone View
doc/REST-interface.md
Show First 20 Lines • Show All 46 Lines • ▼ Show 20 Lines | |||||
* pruneheight : (numeric) highest block available | * pruneheight : (numeric) highest block available | ||||
* softforks : (array) status of softforks in progress | * softforks : (array) status of softforks in progress | ||||
#### Query UTXO set | #### Query UTXO set | ||||
`GET /rest/getutxos/<checkmempool>/<txid>-<n>/<txid>-<n>/.../<txid>-<n>.<bin|hex|json>` | `GET /rest/getutxos/<checkmempool>/<txid>-<n>/<txid>-<n>/.../<txid>-<n>.<bin|hex|json>` | ||||
The getutxo command allows querying of the UTXO set given a set of outpoints. | The getutxo command allows querying of the UTXO set given a set of outpoints. | ||||
See BIP64 for input and output serialisation: | See BIP64 for input and output serialisation: | ||||
https://github.com/bitcoin/bips/blob/master/bip-0064.mediawiki | <https://github.com/bitcoin/bips/blob/master/bip-0064.mediawiki> | ||||
Example: | Example: | ||||
``` | ``` | ||||
$ curl localhost:18332/rest/getutxos/checkmempool/b2cdfd7b89def827ff8af7cd9bff7627ff72e5e8b0f71210f92ea7a4000c5d75-0.json 2>/dev/null | json_pp | $ curl localhost:18332/rest/getutxos/checkmempool/b2cdfd7b89def827ff8af7cd9bff7627ff72e5e8b0f71210f92ea7a4000c5d75-0.json 2>/dev/null | json_pp | ||||
{ | { | ||||
"chaintipHash" : "00000000fb01a7f3745a717f8caebee056c484e6e0bfe4a9591c235bb70506fb", | "chaintipHash" : "00000000fb01a7f3745a717f8caebee056c484e6e0bfe4a9591c235bb70506fb", | ||||
"chainHeight" : 325347, | "chainHeight" : 325347, | ||||
"utxos" : [ | "utxos" : [ | ||||
Show All 37 Lines |