mirror of
https://git.wownero.com/wownero/onion-wownero-blockchain-explorer.git
synced 2024-08-15 00:33:12 +00:00
api decoding example provided
This commit is contained in:
parent
9db09581b6
commit
a850751d48
1 changed files with 8 additions and 1 deletions
|
@ -736,7 +736,14 @@ curl -w "\n" -X GET "http://139.162.32.245:8081/api/version"
|
|||
}
|
||||
```
|
||||
|
||||
api number is store as `uint32_t`.
|
||||
api number is store as `uint32_t`. In this case `65536` represents
|
||||
major version 1 and minor version 0.
|
||||
In JavaScript to get these numbers, one can do as follows:
|
||||
|
||||
```javascript
|
||||
var api_major = response.data.api >> 16;
|
||||
var api_minor = response.data.api & 0xffff;
|
||||
```
|
||||
|
||||
#### api/rawblock/<block_number|block_hash>
|
||||
|
||||
|
|
Loading…
Reference in a new issue