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" + } + } } } }