mirror of
https://github.com/kvazar-network/kevacoin.git
synced 2025-01-11 07:37:54 +00:00
Fix MD formatting in REST-interface.md and spelling mistake in
test_runner.py
This commit is contained in:
parent
41f3e84aac
commit
1d8df01412
@ -8,14 +8,14 @@ The interface runs on the same port as the JSON-RPC interface, by default port 8
|
|||||||
Supported API
|
Supported API
|
||||||
-------------
|
-------------
|
||||||
|
|
||||||
####Transactions
|
#### Transactions
|
||||||
`GET /rest/tx/<TX-HASH>.<bin|hex|json>`
|
`GET /rest/tx/<TX-HASH>.<bin|hex|json>`
|
||||||
|
|
||||||
Given a transaction hash: returns a transaction in binary, hex-encoded binary, or JSON formats.
|
Given a transaction hash: returns a transaction in binary, hex-encoded binary, or JSON formats.
|
||||||
|
|
||||||
For full TX query capability, one must enable the transaction index via "txindex=1" command line / configuration option.
|
For full TX query capability, one must enable the transaction index via "txindex=1" command line / configuration option.
|
||||||
|
|
||||||
####Blocks
|
#### Blocks
|
||||||
`GET /rest/block/<BLOCK-HASH>.<bin|hex|json>`
|
`GET /rest/block/<BLOCK-HASH>.<bin|hex|json>`
|
||||||
`GET /rest/block/notxdetails/<BLOCK-HASH>.<bin|hex|json>`
|
`GET /rest/block/notxdetails/<BLOCK-HASH>.<bin|hex|json>`
|
||||||
|
|
||||||
@ -25,12 +25,12 @@ The HTTP request and response are both handled entirely in-memory, thus making m
|
|||||||
|
|
||||||
With the /notxdetails/ option JSON response will only contain the transaction hash instead of the complete transaction details. The option only affects the JSON response.
|
With the /notxdetails/ option JSON response will only contain the transaction hash instead of the complete transaction details. The option only affects the JSON response.
|
||||||
|
|
||||||
####Blockheaders
|
#### Blockheaders
|
||||||
`GET /rest/headers/<COUNT>/<BLOCK-HASH>.<bin|hex|json>`
|
`GET /rest/headers/<COUNT>/<BLOCK-HASH>.<bin|hex|json>`
|
||||||
|
|
||||||
Given a block hash: returns <COUNT> amount of blockheaders in upward direction.
|
Given a block hash: returns <COUNT> amount of blockheaders in upward direction.
|
||||||
|
|
||||||
####Chaininfos
|
#### Chaininfos
|
||||||
`GET /rest/chaininfo.json`
|
`GET /rest/chaininfo.json`
|
||||||
|
|
||||||
Returns various state info regarding block chain processing.
|
Returns various state info regarding block chain processing.
|
||||||
@ -46,7 +46,7 @@ Only supports JSON as output format.
|
|||||||
* pruneheight : (numeric) heighest block available
|
* pruneheight : (numeric) heighest 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.
|
||||||
@ -79,7 +79,7 @@ $ curl localhost:18332/rest/getutxos/checkmempool/b2cdfd7b89def827ff8af7cd9bff76
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
####Memory pool
|
#### Memory pool
|
||||||
`GET /rest/mempool/info.json`
|
`GET /rest/mempool/info.json`
|
||||||
|
|
||||||
Returns various information about the TX mempool.
|
Returns various information about the TX mempool.
|
||||||
|
@ -348,7 +348,7 @@ def print_results(test_results, max_len_name, runtime):
|
|||||||
|
|
||||||
class TestHandler:
|
class TestHandler:
|
||||||
"""
|
"""
|
||||||
Trigger the testscrips passed in via the list.
|
Trigger the test scripts passed in via the list.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
def __init__(self, num_tests_parallel, tests_dir, tmpdir, test_list=None, flags=None):
|
def __init__(self, num_tests_parallel, tests_dir, tmpdir, test_list=None, flags=None):
|
||||||
|
Loading…
Reference in New Issue
Block a user