From 9c7e8087946d21f15930af99c199fa9626dc483c Mon Sep 17 00:00:00 2001 From: Rene Vergara Date: Fri, 16 Aug 2024 13:28:44 -0500 Subject: [PATCH] Add example for `getbalance` --- zenith-openrpc.json | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/zenith-openrpc.json b/zenith-openrpc.json index 81f1987..1b6890a 100644 --- a/zenith-openrpc.json +++ b/zenith-openrpc.json @@ -259,6 +259,35 @@ } } }, + "examples": [ + { + "name": "GetBalance example", + "summary": "Get account balance", + "description": "Provides the balance for the current account, showing the balance for the transparent, Sapling and Orchard pools, both for confirmed notes and unconfirmed notes", + "params": [ + { + "name": "accountId", + "summary": "The integer ID of the account to use", + "value": 1 + } + ], + "result": { + "name": "GetBalance result", + "value":{ + "confirmed": { + "orchard": 22210259, + "sapling": 0, + "transparent": 0 + }, + "unconfirmed": { + "orchard": 0, + "sapling": 0, + "transparent": 0 + } + } + } + } + ], "errors": [ { "$ref": "#/components/errors/InvalidAccount" } ]