RPC Server #103

Merged
pitmutt merged 129 commits from rav001 into milestone3 2024-11-21 15:30:22 +00:00
Showing only changes of commit 2cfaf5959d - Show all commits

View file

@ -97,6 +97,14 @@
{ "$ref": "#/components/errors/NoWallets" } { "$ref": "#/components/errors/NoWallets" }
] ]
}, },
{
"name": "createwallet",
"summary": "Create a new wallet",
"description": "Create a new wallet for Zenith.",
"tags": [{"$ref": "#/components/tags/draft"}],
"params": [],
"result": {}
},
{ {
"name": "listaccounts", "name": "listaccounts",
"summary": "List existing accounts for a wallet ID", "summary": "List existing accounts for a wallet ID",
@ -148,6 +156,14 @@
{ "$ref": "#/components/errors/NoAccounts" } { "$ref": "#/components/errors/NoAccounts" }
] ]
}, },
{
"name": "createaccount",
"summary": "Create a new account",
"description": "Create a new account in the given wallet.",
"tags": [{"$ref": "#/components/tags/draft"}],
"params": [],
"result": {}
},
{ {
"name": "listaddresses", "name": "listaddresses",
"summary": "List existing addresses for an account ID", "summary": "List existing addresses for an account ID",
@ -203,6 +219,38 @@
"errors": [ "errors": [
{ "$ref": "#/components/errors/NoAddress" } { "$ref": "#/components/errors/NoAddress" }
] ]
},
{
"name": "addaddress",
"summary": "Add a new address",
"description": "Derive a new address in the given account.",
"tags": [{"$ref": "#/components/tags/draft"}],
"params": [],
"result": {}
},
{
"name": "getbalance",
"summary": "Get the balance of the given account",
"description": "Get the balance of the given account, including any unconfirmed balance.",
"tags": [{"$ref": "#/components/tags/draft"}],
"params": [],
"result": {}
},
{
"name": "listreceived",
"summary": "List received transactions",
"description": "List transactions received by the given address.",
"tags": [{"$ref": "#/components/tags/draft"}],
"params": [],
"result": {}
},
{
"name": "sendmany",
"summary": "Send transaction(s)",
"description": "Send one or more transactions ",
"tags": [{"$ref": "#/components/tags/draft"}],
"params": [],
"result": {}
} }
], ],
"components": { "components": {