From 26b44f94767823f080bd88bdad8e3845bcb04998 Mon Sep 17 00:00:00 2001 From: Eric Lima Date: Wed, 9 May 2018 09:44:37 -0400 Subject: [PATCH 1/2] asd --- package-lock.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index 0c47111c..89444f88 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1060,9 +1060,9 @@ } }, "bitbox-cli": { - "version": "0.7.15", - "resolved": "https://registry.npmjs.org/bitbox-cli/-/bitbox-cli-0.7.15.tgz", - "integrity": "sha512-dE8LpHrCIHsTVWkE9SZHRZx1nMbf5LdqmKnEPwE0PwNPSWfosbOCN88Y7xzpjGvCrlfH5JemPVJaTdPNutvBvg==", + "version": "0.7.16", + "resolved": "https://registry.npmjs.org/bitbox-cli/-/bitbox-cli-0.7.16.tgz", + "integrity": "sha512-e/h7ECb1Z7Ljaz/QgGADqIh5axeYgaRRkU8lngLvZRymfnF3wnQ2JZlKrPvRtgCu8FjsxLIKQSlTMzg0dnHIvA==", "requires": { "assert": "1.4.1", "axios": "0.17.1", From 86f051984316bb105e224bf24d3c4e280ea531dc Mon Sep 17 00:00:00 2001 From: ericx2x Date: Mon, 21 May 2018 13:34:16 -0400 Subject: [PATCH 2/2] added txDetails and validateAddress to bitbox-rest-v1.json --- package-lock.json | 2 +- public/bitbox-rest-v1.json | 200 ++++++++++++++++++++++++++++++++++++- 2 files changed, 198 insertions(+), 4 deletions(-) diff --git a/package-lock.json b/package-lock.json index 4183ed5a..5ef7daa2 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "rest-cloud", - "version": "0.1.2", + "version": "0.1.6", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/public/bitbox-rest-v1.json b/public/bitbox-rest-v1.json index c22c5678..f553cd96 100644 --- a/public/bitbox-rest-v1.json +++ b/public/bitbox-rest-v1.json @@ -1367,7 +1367,10 @@ ], "responses": { "200": { - "description": "successful operation" + "description": "successful operation", + "schema": { + "$ref": "#/definitions/transactionDetails" + } }, "400": { "description": "Invalid Command" @@ -1404,7 +1407,10 @@ ], "responses": { "200": { - "description": "successful operation" + "description": "successful operation", + "schema": { + "$ref": "#/definitions/CreateMultisig" + } }, "400": { "description": "Invalid Command" @@ -1434,7 +1440,10 @@ ], "responses": { "200": { - "description": "successful operation" + "description": "successful operation", + "schema": { + "$ref": "#/definitions/ValidateAddress" + } }, "400": { "description": "Invalid Command" @@ -1761,6 +1770,191 @@ } } } + }, + "transactionDetails": { + "type": "object", + "properties": { + "txid": { + "type": "string" + }, + "version": { + "type": "number" + }, + "locktime": { + "type": "number" + }, + "vin": { + "type": "array", + "items": { + "type": "object", + "properties": { + "txid": { + "type": "string" + }, + "vout": { + "type": "number" + }, + "sequence": { + "type": "number" + }, + "n": { + "type": "number" + }, + "scriptSig": { + "type": "object", + "properties": { + "hex": { + "type": "string" + }, + "asm": { + "type": "string" + }, + "value": { + "type": "number" + }, + "legacyAddress": { + "type": "string" + }, + "cashAddress": { + "type": "string" + } + } + } + } + } + }, + "vout": { + "type": "array", + "items": { + "objects": { + "type": "object", + "properties": { + "value": { + "type": "number" + }, + "n": { + "type": "number" + }, + "scriptPubkey": { + "type": "object", + "properties": { + "hex": { + "type": "string" + }, + "asm": { + "type": "string" + }, + "addresses": { + "type": "array", + "items": { + "address": { + "type": "string" + } + } + }, + "type": { + "type": "string" + } + } + }, + "spentTxId": { + "type": "string" + }, + "spentIndex": { + "type": "number" + }, + "spentHeight": { + "type": "number" + } + } + }, + "type": "object", + "properties": { + "value": { + "type": "number" + }, + "n": { + "type": "number" + }, + "scriptPubkey": { + "type": "object", + "properties": { + "hex": { + "type": "string" + }, + "asm": { + "type": "string" + } + } + }, + "spentTxId": { + "type": "string" + }, + "spentIndex": { + "type": "number" + }, + "spentHeight": { + "type": "number" + } + } + } + }, + "blockhash": { + "type": "string" + }, + "blockheight": { + "type": "number" + }, + "confirmations": { + "type": "number" + }, + "time": { + "type": "blocktime" + }, + "valueOut": { + "type": "number" + }, + "size": { + "type": "number" + }, + "valueIn": { + "type": "number" + }, + "fees": { + "type": "number" + } + } + }, + "createMultisig": { + "type": "object", + "properties": { + "xxxxxxxx": { + "type": "boolean" + } + } + }, + "ValidateAddress": { + "type": "object", + "properties": { + "isvalid": { + "type": "boolean" + }, + "address": { + "type": "string" + }, + "scriptPubKey": { + "type": "string" + }, + "ismine": { + "type": "boolean" + }, + "iswatchonly": { + "type": "boolean" + }, + "isscript": { + "type": "false" + } + } } } }