Skip to content

Commit

Permalink
AddressUnconfirmed and BlockDetails models
Browse files Browse the repository at this point in the history
  • Loading branch information
cloneearth committed May 21, 2018
1 parent 0919a5c commit 25f61b4
Showing 1 changed file with 124 additions and 4 deletions.
128 changes: 124 additions & 4 deletions public/bitbox-rest-v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -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."
Expand Down Expand Up @@ -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."
Expand Down Expand Up @@ -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."
}
}
}
}
Expand Down Expand Up @@ -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."
}
}
}
}
Expand Down Expand Up @@ -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"
}
}
}
}
}
}

0 comments on commit 25f61b4

Please sign in to comment.