Added getblockhash call

This commit is contained in:
g-homebase
2019-09-03 17:31:34 -04:00
committed by kexkey
parent aa7ee15d3d
commit 8c7f2724ff
5 changed files with 65 additions and 0 deletions

View File

@@ -436,6 +436,38 @@ paths:
schema:
$ref: '#/components/schemas/ApiResponseTemporarilyUnavailable'
/getblockhash:
get:
tags:
- "block"
- "core features"
summary: "Get block hash matching height provided."
description: "Returns the block matching the height provided of the watching Bitcoin node."
operationId: "getBlockHash"
responses:
'200':
description: "successful operation"
content:
application/json:
schema:
type: "object"
required:
- "result"
properties:
result:
$ref: '#/components/schemas/TypeHashString'
error:
type: "string"
id:
type: "string"
'403':
$ref: '#/components/schemas/ApiResponseNotAllowed'
'503':
description: "Resource temporarily unavailable"
content:
application/json:
schema:
$ref: '#/components/schemas/ApiResponseTemporarilyUnavailable'
/getbestblockhash:
get:
tags: