RPC Server #103
1 changed files with 28 additions and 3 deletions
|
@ -190,14 +190,39 @@
|
||||||
"name": "getnewaccount",
|
"name": "getnewaccount",
|
||||||
"summary": "Create a new account",
|
"summary": "Create a new account",
|
||||||
"description": "Create a new account in the given wallet.",
|
"description": "Create a new account in the given wallet.",
|
||||||
"tags": [{"$ref": "#/components/tags/draft"}],
|
"tags": [{"$ref": "#/components/tags/draft"}, {"$ref": "#/components/tags/wip"}],
|
||||||
"params": [],
|
"params": [
|
||||||
|
{ "$ref": "#/components/contentDescriptors/Name"}
|
||||||
|
],
|
||||||
|
"paramStructure": "by-position",
|
||||||
"result": {
|
"result": {
|
||||||
"name": "Account",
|
"name": "Account",
|
||||||
"schema": {
|
"schema": {
|
||||||
"$ref": "#/components/contentDescriptors/AccountId"
|
"$ref": "#/components/contentDescriptors/AccountId"
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
"examples": [
|
||||||
|
{
|
||||||
|
"name": "GetNewAccount example",
|
||||||
|
"summary": "Create an account",
|
||||||
|
"description": "Creates a new account with the given name",
|
||||||
|
"params": [
|
||||||
|
{
|
||||||
|
"name": "Account name",
|
||||||
|
"summary": "The user-friendly name for the Account",
|
||||||
|
"value": "Personal"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"result": {
|
||||||
|
"name": "GetNewAccount result",
|
||||||
|
"value": 1
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"errors": [
|
||||||
|
{ "$ref": "#/components/errors/ZebraNotAvailable" },
|
||||||
|
{ "$ref": "#/components/errors/DuplicateName" }
|
||||||
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "listaddresses",
|
"name": "listaddresses",
|
||||||
|
|
Loading…
Reference in a new issue