rpc: remove NewWitnessAddress RPC
In this commit, we remove the unnecessary NewWitnessAddress RPC. We do this as, at the moment, we only expose the wallet to generate witness addresses. Now that the RPC has been removed, its REST endpoint has been assigned to the NewAddress RPC, which should be the de facto way of having the wallet generate any type of supported address. Fixes #1986.
This commit is contained in:
6 files changed
+526
-585
No files matched your search
+16
-2
@@ -732,8 +732,8 @@
|
||||
},
|
||||
"/v1/newaddress": {
|
||||
"get": {
|
||||
"summary": "*\nNewWitnessAddress creates a new witness address under control of the local wallet.",
|
||||
"operationId": "NewWitnessAddress",
|
||||
"summary": "* lncli: `newaddress`\nNewAddress creates a new address under control of the local wallet.",
|
||||
"operationId": "NewAddress",
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "",
|
||||
@@ -742,6 +742,20 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"parameters": [
|
||||
{
|
||||
"name": "type",
|
||||
"description": "/ The address type.",
|
||||
"in": "query",
|
||||
"required": false,
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"WITNESS_PUBKEY_HASH",
|
||||
"NESTED_PUBKEY_HASH"
|
||||
],
|
||||
"default": "WITNESS_PUBKEY_HASH"
|
||||
}
|
||||
],
|
||||
"tags": [
|
||||
"Lightning"
|
||||
]
|
||||
|
||||
Reference in new issue
Block a user