jonasschnelli$ ./src/bitcoin-cli --regtest getbestblockhash
0f9188f13cb7b2c71f2a335e3a4fc328bf5beb436012afca590b1a11466e2206
jonasschnelli$ ./src/bitcoin-cli --regtest getblock 0f9188f13cb7b2c71f2a335e3a4fc328bf5beb436012afca590b1a11466e2206
{
"hash": "0f9188f13cb7b2c71f2a335e3a4fc328bf5beb436012afca590b1a11466e2206",
"confirmations": 1,
"size": 285,
"height": 0,
"version": 1,
"merkleroot": "4a5e1e4baab89f3a32518a88c31bc87f618f76673e2cc77ab2127b7afdeda33b",
"tx": [
"4a5e1e4baab89f3a32518a88c31bc87f618f76673e2cc77ab2127b7afdeda33b"
],
"time": 1296688602,
"nonce": 2,
"bits": "207fffff",
"difficulty": 0.00000000,
"chainwork": "0000000000000000000000000000000000000000000000000000000000000002"
}
curl 'http://localhost:18332/rest/getutxos/b2cdfd7b89def827ff8af7cd9bff7627ff72e5e8b0f71210f92ea7a4000c5d75-0.hex'
0000000006226e46111a0b59caaf126043eb5bbf28c34f3a5e332a1fc7b2b73cf188910f010000
0000000006226e46111a0b59caaf126043eb5bbf28c34f3a5e332a1fc7b2b73cf188910f
010000
First 4 bytes (00000000) is the chain height (int32)
Next 32 bytes (6226e46111a0b59caaf126043eb5bbf28c34f3a5e332a1fc7b2b73cf188910f) is the chain tip hash (
little endian notation, so it's "reversed")
Next 2 bytes (0100) is the bitmap where you can see if your queried outpoints are in the UTXO set. 01 = size, 00 = not in set (first queried outpoint is not in set,...).
Next 1 bytes (00) is a serialized vector of a Coin (uint32_t nTxVer, uint32_t nHeight, CTxOut out). In this case it's empty.
Also mind that you can have JSON output for getutxos:
curl 'http://localhost:18332/rest/getutxos/b2cdfd7b89def827ff8af7cd9bff7627ff72e5e8b0f71210f92ea7a4000c5d75-0.json'