Current REST API always returns empty UTXO when invoked without /checkmempool/
URL part.
After the fix:
0$ curl -s http://localhost:8332/rest/getutxos/0e3e2357e806b6cdb1f70b54c3a3a17b6714ee1f0e68bebb44a74b1efd512098-0.json | jq
1{
2 "chainHeight": 514109,
3 "chaintipHash": "0000000000000000001fe76d1445e8a6432fd2de04261dc9c5915311dc7ad6de",
4 "bitmap": "1",
5 "utxos": [
6 {
7 "height": 1,
8 "value": 50,
9 "scriptPubKey": {
10 "asm": "0496b538e853519c726a2c91e61ec11600ae1390813a627c66fb8be7947be63c52da7589379515d4e0a604f8141781e62294721166bf621e73a82cbf2342c858ee OP_CHECKSIG",
11 "hex": "410496b538e853519c726a2c91e61ec11600ae1390813a627c66fb8be7947be63c52da7589379515d4e0a604f8141781e62294721166bf621e73a82cbf2342c858eeac",
12 "reqSigs": 1,
13 "type": "pubkey",
14 "addresses": [
15 "12c6DSiU4Rq3P4ZxziKxzrL5LmMBrzjrJX"
16 ]
17 }
18 }
19 ]
20}
Before the fix:
0$ curl -s http://localhost:8332/rest/getutxos/0e3e2357e806b6cdb1f70b54c3a3a17b6714ee1f0e68bebb44a74b1efd512098-0.json | jq
1{
2 "chainHeight": 514109,
3 "chaintipHash": "0000000000000000001fe76d1445e8a6432fd2de04261dc9c5915311dc7ad6de",
4 "bitmap": "0",
5 "utxos": []
6}