diff --git a/zenith-openrpc.json b/zenith-openrpc.json index 0f66324..52fad53 100644 --- a/zenith-openrpc.json +++ b/zenith-openrpc.json @@ -291,14 +291,23 @@ "name": "getnewaddress", "summary": "Add a new address", "description": "Derive a new address in the given account.", - "tags": [{"$ref": "#/components/tags/draft"}], - "params": [], + "tags": [{"$ref": "#/components/tags/wip"}, {"$ref": "#/components/tags/draft"}], + "params": [ + { "$ref": "#/components/contentDescriptors/AccountId"}, + { "$ref": "#/components/contentDescriptors/Name"}, + { "$ref": "#/components/contentDescriptors/ExcludeSapling"}, + { "$ref": "#/components/contentDescriptors/ExcludeTransparent"} + ], "result": { "name": "Address", "schema": { "$ref": "#/components/schemas/ZcashAddress" } - } + }, + "errors": [ + { "$ref": "#/components/errors/InvalidAccount" }, + { "$ref": "#/components/errors/DuplicateName" } + ] }, { "name": "getbalance", @@ -505,6 +514,24 @@ "schema": { "type": "string" } + }, + "ExcludeSapling": { + "name": "ExcludeSapling", + "summary": "Setting that indicates that the new address requested should not contain a Sapling component", + "description": "When this parameter is present, Zenith will generate an address with no Sapling receiver", + "required": false, + "schema" : { + "type": "string" + } + }, + "ExcludeTransparent": { + "name": "ExcludeTransparent", + "summary": "Setting that indicates that the new address requested should not contain a Transparent component", + "description": "When this parameter is present, Zenith will generate an address with no Transparent receiver", + "required": false, + "schema" : { + "type": "string" + } } }, "schemas": {