Update README.md
Added description for block-index.
This commit is contained in:
parent
48886dcd5c
commit
e34c7752de
11
README.md
11
README.md
@ -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]
|
||||
|
||||
Loading…
Reference in New Issue
Block a user