Commit 10d17829 authored by Luke Champine's avatar Luke Champine

update API.md

parent 72317011
......@@ -7,7 +7,7 @@ Errors are sent as plaintext, accompanied by an appropriate status code.
| Path | Params | Response |
|:------------------|:---------------------------------|:-----------------------------|
| /host/config | | See HostInfo |
| /host/setconfig | See HostInfo | |
| /host/setconfig | See HostSettings | |
| /miner/start | `threads` | |
| /miner/status | | See MinerInfo |
| /miner/stop | | |
......@@ -27,21 +27,32 @@ Errors are sent as plaintext, accompanied by an appropriate status code.
| /stop | | |
| /sync | | |
HostInfo comprises the following values:
HostInfo is a JSON object containing the following values:
```
totalstorage
minfile
maxfile
mintolerance
minduration
maxduration
minwin
maxwin
freezeduration
price
penalty
freezevolume
TotalStorage"
"Minfilesize"
"Maxfilesize"
"Minwindow"
"Minduration"
"Maxduration"
"Price"
"Collateral"
"StorageRemaining"
"NumContracts"
``
HostSettings: the following parameters can be set via `/host/setconfig`:
```
totalstorage
minfilesize
maxfilesize
minwindow
minduration
maxduration
price
collateral
```
Only the values specified in the call will be updated.
WalletInfo is a JSON object containing the following fields:
```
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment