aboutsummaryrefslogtreecommitdiff
path: root/src/rest.cpp
Commit message (Collapse)AuthorAgeFilesLines
* [REST] remove json input for getutxos, limit to query max. 15 outpointsJonas Schnelli2015-05-271-34/+50
| | | | | | Remove possibility to send json encoded parameters to `/rest/getutxos/` to avoid possible DoS scenarios. The JSON output option is untouched.
* rest.cpp: strip whitespaceJonas Schnelli2015-05-271-5/+5
|
* Merge pull request #6058Wladimir J. van der Laan2015-05-111-0/+3
|\ | | | | | | | | 03c5687 appropriate response when trying to get a block in pruned mode (Jonas Schnelli) 1b2e555 add autoprune information to RPC "getblockchaininfo" (Jonas Schnelli)
| * appropriate response when trying to get a block in pruned modeJonas Schnelli2015-05-111-0/+3
| |
* | [REST] getutxos REST command (based on Bip64)Jonas Schnelli2015-04-211-17/+227
|/ | | | | | | | has parts of @mhearn #4351 * allows querying the utxos over REST * same binary input and outputs as mentioned in Bip64 * input format = output format * various rpc/rest regtests
* Merge #5548: [REST] add /rest/chaininfosWladimir J. van der Laan2015-02-101-3/+30
|\ | | | | | | | | 2c0f901 [REST] rest/chaininfos add documentation (Jonas Schnelli) 59582c8 [REST] add /rest/chaininfos (Jonas Schnelli)
| * [REST] add /rest/chaininfosJonas Schnelli2014-12-291-3/+30
| |
* | Replace direct use of 0 with SetNull and IsNullWladimir J. van der Laan2015-01-051-1/+1
|/ | | | | | Replace x=0 with .SetNull(), x==0 with IsNull(), x!=0 with !IsNull(). Replace uses of uint256(0) with uint256().
* Added "Core" to copyright headerssandakersmann2014-12-191-1/+1
| | | | | Github-Pull: #5494 Rebased-From: 15de949bb9277e442302bdd8dee299a8d6deee60
* Make pass-by-ref arguments const.Daniel Kraft2014-12-161-15/+15
| | | | | Make some of the arguments in rest.cpp, that are passed by reference but never modified, const to emphasise that.
* Add /rest/headersPieter Wuille2014-12-121-0/+64
|
* [REST] /rest/block response with full tx detailsJonas Schnelli2014-12-091-4/+22
| | | | | - rest block request returns full unfolded tx details - /rest/block/notxdetails/<HASH> returns block where transactions are only represented by its hash
* MOVEONLY: core/ -> primitives/Luke Dashjr2014-12-031-2/+2
|
* [REST] make selection of output-format mandatory, support dot url syntaxJonas Schnelli2014-11-271-32/+57
| | | | | | 1. Remove the default format (binary) because `rest/block/<hash>/Hex` would end up delivering binary data. 2. List available formats when chosen format was not found (reduces need for documentation) 3. Change url syntax to dot extension like format chosing (like `rest/tx/<hash>.json`
* [REST] give an appropriate response in warmup phaseJonas Schnelli2014-11-261-0/+4
|
* [REST] fix headersonly flag for BINARY responsesJonas Schnelli2014-11-261-2/+2
|
* minor style cleanup after HTTP rest interface mergePhilip Kaufmann2014-11-201-9/+9
| | | | - no code changes
* Properly lock cs_main in rest_blockPieter Wuille2014-11-181-6/+11
|
* HTTP REST: minor fixesJeff Garzik2014-11-181-2/+2
| | | | | | 1) const-ify internal helper ParseHashStr() 2) use HTTPError() helper when returning HTTP_NOT_FOUND
* Add unauthenticated HTTP REST interface to public blockchain data.Jeff Garzik2014-11-111-0/+201