From 6260c01a81378855d208bd5b8789b4f86f223409 Mon Sep 17 00:00:00 2001 From: ericx2x Date: Mon, 21 May 2018 16:04:30 -0400 Subject: [PATCH] added getnettotals and getnetworkinfo (and get peer info?) --- public/bitbox-rest-v1.json | 128 ++++++++++++++++++++++++++++++++++++- 1 file changed, 126 insertions(+), 2 deletions(-) diff --git a/public/bitbox-rest-v1.json b/public/bitbox-rest-v1.json index 882db786..01df1345 100644 --- a/public/bitbox-rest-v1.json +++ b/public/bitbox-rest-v1.json @@ -1145,7 +1145,10 @@ ], "responses": { "200": { - "description": "successful operation" + "description": "successful operation", + "schema": { + "$ref": "#/definitions/GetNetTotals" + } } } } @@ -1163,7 +1166,10 @@ ], "responses": { "200": { - "description": "successful operation" + "description": "successful operation", + "schema": { + "$ref": "#/definitions/GetNetworkInfo" + } } } } @@ -1884,6 +1890,124 @@ "VerifyChain": { "type": "boolean" }, + "GetNetTotals": { + "type": "object", + "properties": { + "totalbytesrecv": { + "type": "number" + }, + "totalbytessent": { + "type": "number" + }, + "timemillis": { + "type": "number" + }, + "uploadtarget": { + "type": "array", + "items": { + "type": "object", + "properties": { + "timeframe": { + "type": "number" + }, + "target": { + "type": "number" + }, + "target_reached": { + "type": "boolean" + }, + "serve_historical_blocks": { + "type": "boolean" + }, + "proxy_randomize_credentials": { + "type": "number" + }, + "time_left_in_cycle": { + "type": "number" + } + } + } + } + } + }, + "GetNetworkInfo": { + "type": "object", + "properties": { + "version": { + "type": "number" + }, + "subversion": { + "type": "string" + }, + "protocolversion": { + "type": "number" + }, + "localservices": { + "type": "number" + }, + "localrelay": { + "type": "boolean" + }, + "timeoffset": { + "type": "number" + }, + "networkactive": { + "type": "boolean" + }, + "connections": { + "type": "number" + }, + "networks": { + "type": "array", + "items": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "limited": { + "type": "boolean" + }, + "reachable": { + "type": "boolean" + }, + "proxy": { + "type": "string" + }, + "proxy_randomize_credentials": { + "type": "boolean" + } + } + } + }, + "relayfee": { + "type": "number" + }, + "incrementalfee": { + "type": "number" + }, + "localaddresses": { + "type": "array", + "items": { + "type": "object", + "properties": { + "address": { + "type": "string" + }, + "port": { + "type": "number" + }, + "score": { + "type": "number" + } + } + } + }, + "warnings": { + "type": "string" + } + } + }, "GetPeerInfo": { "type": "object", "properties": {