rawblock and rawtransaction api added to readme

master
moneroexamples 8 years ago
parent 19718932c3
commit b5cbad2895

@ -380,7 +380,6 @@ Partial results shown:
} }
``` ```
#### api/mempool #### api/mempool
Return all txs in the mempool. Return all txs in the mempool.
@ -473,6 +472,7 @@ Partial results shown:
} }
``` ```
#### api/outputs?txhash=<tx_hash>&address=<address>&viewkey=<viewkey>&txprove=<0|1> #### api/outputs?txhash=<tx_hash>&address=<address>&viewkey=<viewkey>&txprove=<0|1>
For `txprove=0` we check which outputs belong to given address and corresponding viewkey. For `txprove=0` we check which outputs belong to given address and corresponding viewkey.
@ -585,6 +585,25 @@ curl -w "\n" -X GET "http://139.162.32.245:8081/api/networkinfo"
``` ```
#### api/rawblock/<block_number|block_hash>
Return raw json block data, as represented in Monero.
```bash
curl -w "\n" -X GET "http://139.162.32.245:8081/api/rawblock/1293257"
```
Example result not shown.
#### api/rawtransaction/<tx_hash>
Return raw json tx data, as represented in Monero.
```bash
curl -w "\n" -X GET "http://139.162.32.245:8081/api/rawtransaction/6093260dbe79fd6277694d14789dc8718f1bd54457df8bab338c2efa3bb0f03d"
```
Example result not shown.
## Other monero examples ## Other monero examples

Loading…
Cancel
Save