chainrpc: update proto to expose GetBlockHeader
This commit is contained in:
7 files changed
+404
-58
No files matched your search
@@ -104,6 +104,39 @@
|
||||
"ChainKit"
|
||||
]
|
||||
}
|
||||
},
|
||||
"/v2/chainkit/blockheader": {
|
||||
"get": {
|
||||
"summary": "lncli: `chain getblockheader`\nGetBlockHeader returns a block header with a particular block hash.",
|
||||
"operationId": "ChainKit_GetBlockHeader",
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "A successful response.",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/chainrpcGetBlockHeaderResponse"
|
||||
}
|
||||
},
|
||||
"default": {
|
||||
"description": "An unexpected error response.",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/rpcStatus"
|
||||
}
|
||||
}
|
||||
},
|
||||
"parameters": [
|
||||
{
|
||||
"name": "block_hash",
|
||||
"description": "The hash of the block with the requested header.",
|
||||
"in": "query",
|
||||
"required": false,
|
||||
"type": "string",
|
||||
"format": "byte"
|
||||
}
|
||||
],
|
||||
"tags": [
|
||||
"ChainKit"
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"definitions": {
|
||||
@@ -132,6 +165,16 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"chainrpcGetBlockHeaderResponse": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"raw_block_header": {
|
||||
"type": "string",
|
||||
"format": "byte",
|
||||
"description": "The header of the block with the requested hash."
|
||||
}
|
||||
}
|
||||
},
|
||||
"chainrpcGetBlockResponse": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
|
||||
Reference in new issue
Block a user