Add example to OpenRPC for listwallets

This commit is contained in:
Rene Vergara 2024-08-05 13:04:57 -05:00
parent f7efa85cdd
commit a0b92ba468
Signed by: pitmutt
GPG key ID: 65122AD495A7F5B2

View file

@ -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": { "components": {