api/emission example added to readme

This commit is contained in:
moneroexamples 2017-05-20 10:31:52 +08:00
parent 7b9ee5732d
commit 21770a518e
1 changed files with 19 additions and 0 deletions

View File

@ -623,6 +623,25 @@ curl -w "\n" -X GET "http://139.162.32.245:8081/api/networkinfo"
}
```
#### api/emission
```bash
curl -w "\n" -X GET "http://139.162.32.245:8081/api/emission"
```
```json
{
"data": {
"blk_no": 1313969,
"coinbase": 14489473877253413000,
"fee": 52601974988641130
},
"status": "success"
}
```
Emission only works when the emission monitoring thread is enabled.
#### api/rawblock/<block_number|block_hash>