Update README.md

Added description for block-index.
This commit is contained in:
jl2035 2015-06-28 19:48:07 +02:00
parent 48886dcd5c
commit e34c7752de

View File

@ -182,6 +182,17 @@ The end-points are:
/api/block/[:hash]
/api/block/00000000a967199a2fad0877433c93df785a8d8ce062e5f9b451cd1397bdbf62
```
### Block hash
```
/api/block-index/[:height]
/api/block-index/0
```
This would return:
```
{"blockHash":"000000000019d6689c085ae165831e934ff763ae46a2a6c172b3f1b60a8ce26f"}
```
which is the hash of the Genesis block (0 height)
### Transaction
```
/api/tx/[:txid]