From 25f61b4e4e045c610e06ccfa3427ca6adf3a4b5e Mon Sep 17 00:00:00 2001 From: Gabriel Cardona Date: Mon, 21 May 2018 07:10:57 -0700 Subject: [PATCH] AddressUnconfirmed and BlockDetails models --- public/bitbox-rest-v1.json | 128 +++++++++++++++++++++++++++++++++++-- 1 file changed, 124 insertions(+), 4 deletions(-) diff --git a/public/bitbox-rest-v1.json b/public/bitbox-rest-v1.json index 21301301..2615cd3f 100644 --- a/public/bitbox-rest-v1.json +++ b/public/bitbox-rest-v1.json @@ -128,6 +128,7 @@ } }, "400": { + "description": "Received an invalid Bitcoin Cash address as input.", "schema": { "status": 500, "message": "Received an invalid Bitcoin Cash address as input." @@ -167,6 +168,7 @@ } }, "400": { + "description": "Received an invalid Bitcoin Cash address as input.", "schema": { "status": 500, "message": "Received an invalid Bitcoin Cash address as input." @@ -200,10 +202,17 @@ ], "responses": { "200": { - "description": "successful response" + "description": "successful response", + "schema": { + "$ref": "#/definitions/AddressUnconfirmed" + } }, "400": { - "description": "Invalid tag value" + "description": "Received an invalid Bitcoin Cash address as input.", + "schema": { + "status": 500, + "message": "Received an invalid Bitcoin Cash address as input." + } } } } @@ -233,10 +242,17 @@ ], "responses": { "200": { - "description": "successful response" + "description": "successful response", + "schema": { + "$ref": "#/definitions/BlockDetails" + } }, "400": { - "description": "Invalid tag value" + "description": "Invalid tag value", + "schema": { + "status": 500, + "message": "Received an invalid Bitcoin Cash address as input." + } } } } @@ -1512,6 +1528,110 @@ "type": "string" } } + }, + "AddressUnconfirmed": { + "type": "array", + "items": { + "$ref": "#/definitions/Unconfirmed" + } + }, + "Unconfirmed": { + "type": "object", + "properties": { + "txid": { + "type": "string" + }, + "vout": { + "type": "number" + }, + "scriptPubKey": { + "type": "string" + }, + "amount": { + "type": "number", + "format": "float" + }, + "satoshis": { + "type": "number" + }, + "height": { + "type": "number" + }, + "confirmations": { + "type": "number" + }, + "legacyAddress": { + "type": "string" + }, + "cashAddress": { + "type": "string" + } + } + }, + "BlockDetails": { + "type": "object", + "properties": { + "hash": { + "type": "string" + }, + "size": { + "type": "number" + }, + "height": { + "type": "number" + }, + "version": { + "type": "number" + }, + "merkleroot": { + "type": "string" + }, + "tx": { + "type": "array", + "items": { + "type": "string" + } + }, + "time": { + "type": "number" + }, + "nonce": { + "type": "number" + }, + "bits": { + "type": "string" + }, + "difficulty": { + "type": "number", + "format": "float" + }, + "chainwork": { + "type": "string" + }, + "confirmations": { + "type": "number" + }, + "previousblockhash": { + "type": "string" + }, + "nextblockhash": { + "type": "string" + }, + "reward": { + "type": "number", + "format": "float" + }, + "isMainChain": { + "type": "boolean" + }, + "poolInfo": { + "type": "object", + "properties": { + "poolName": "string", + "url": "strinng" + } + } + } } } }