Update getnewaccount on RPC

This commit is contained in:
Rene Vergara 2024-08-26 13:49:00 -05:00
parent 0b7bf1db99
commit 35ab075703
Signed by: pitmutt
GPG key ID: 65122AD495A7F5B2

View file

@ -192,7 +192,8 @@
"description": "Create a new account in the given wallet.", "description": "Create a new account in the given wallet.",
"tags": [{"$ref": "#/components/tags/draft"}, {"$ref": "#/components/tags/wip"}], "tags": [{"$ref": "#/components/tags/draft"}, {"$ref": "#/components/tags/wip"}],
"params": [ "params": [
{ "$ref": "#/components/contentDescriptors/Name"} { "$ref": "#/components/contentDescriptors/Name"},
{ "$ref": "#/components/contentDescriptors/WalletId"}
], ],
"paramStructure": "by-position", "paramStructure": "by-position",
"result": { "result": {
@ -599,6 +600,10 @@
"DuplicateName": { "DuplicateName": {
"code": -32007, "code": -32007,
"message": "Entity with that name already exists." "message": "Entity with that name already exists."
},
"InvalidWallet": {
"code": -32008,
"message": "Wallet does not exist."
} }
} }
} }