chainrpc: update proto to expose GetBlockHeader

This commit is contained in:
Jonathan Harvey-Buschel committed 2023-10-26 16:16:35 -04:00
1 parent 7d2e0ae3e4
commit 7a8803e3cf
7 files changed
+404 -58

No files matched your search

+43
View File
@@ -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": {