From a0b92ba468cee212586207ca18fbc71a79c8921d Mon Sep 17 00:00:00 2001 From: Rene Vergara Date: Mon, 5 Aug 2024 13:04:57 -0500 Subject: [PATCH] Add example to OpenRPC for listwallets --- zenith-openrpc.json | 34 +++++++++++++++++++++++++++++++++- 1 file changed, 33 insertions(+), 1 deletion(-) diff --git a/zenith-openrpc.json b/zenith-openrpc.json index 13dc854..768ba1b 100644 --- a/zenith-openrpc.json +++ b/zenith-openrpc.json @@ -58,7 +58,39 @@ } } }, - "params": [] + "params": [], + "examples": [ + { + "name": "ListWallets example", + "summary": "Get list of wallets", + "description": "Get the list of wallets available in Zenith for the current network (Mainnet/Testnet)", + "params": [], + "result": { + "name": "ListWallets result", + "value": [ + { + "birthday": 2762066, + "index": 1, + "lastSync": 2919374, + "name": "Main", + "network": "TestNet" + }, + { + "birthday": 2798877, + "index": 2, + "lastSync": 2894652, + "name": "zcashd", + "network": "TestNet" + } + ] + } + + } + ], + "errors": [ + { "$ref": "#/components/errors/ZebraNotAvailable" }, + { "$ref": "#/components/errors/NoWallets" } + ] } ], "components": {