Changeset View
Changeset View
Standalone View
Standalone View
doc/REST-interface.md
Show All 37 Lines | |||||
* chain : (string) current network name as defined in BIP70 (main, test, regtest) | * chain : (string) current network name as defined in BIP70 (main, test, regtest) | ||||
* blocks : (numeric) the current number of blocks processed in the server | * blocks : (numeric) the current number of blocks processed in the server | ||||
* headers : (numeric) the current number of headers we have validated | * headers : (numeric) the current number of headers we have validated | ||||
* bestblockhash : (string) the hash of the currently best block | * bestblockhash : (string) the hash of the currently best block | ||||
* difficulty : (numeric) the current difficulty | * difficulty : (numeric) the current difficulty | ||||
* verificationprogress : (numeric) estimate of verification progress [0..1] | * verificationprogress : (numeric) estimate of verification progress [0..1] | ||||
* chainwork : (string) total amount of work in active chain, in hexadecimal | * chainwork : (string) total amount of work in active chain, in hexadecimal | ||||
* pruned : (boolean) if the blocks are subject to pruning | * pruned : (boolean) if the blocks are subject to pruning | ||||
* pruneheight : (numeric) heighest 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 | ||||
▲ Show 20 Lines • Show All 44 Lines • Show Last 20 Lines |