Add endpoint to fetch pubkey & Require wallet already unlocked when starting the service (#43)

* Add endpoint to fetch pubkey & simplify ports.Wallet

* Lint
This commit is contained in:
Pietralberto Mazza
2023-12-05 17:45:38 +01:00
committed by GitHub
parent 376d62f44b
commit 7bcdff0d2a
14 changed files with 425 additions and 563 deletions

View File

@@ -203,6 +203,28 @@
]
}
},
"/v1/pubkey": {
"get": {
"operationId": "ArkService_GetPubkey",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/v1GetPubkeyResponse"
}
},
"default": {
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/rpcStatus"
}
}
},
"tags": [
"ArkService"
]
}
},
"/v1/round/{txid}": {
"get": {
"operationId": "ArkService_GetRound",
@@ -343,6 +365,14 @@
}
}
},
"v1GetPubkeyResponse": {
"type": "object",
"properties": {
"pubkey": {
"type": "string"
}
}
},
"v1GetRoundResponse": {
"type": "object",
"properties": {