bitcoind_json_rpc_client/client_sync/v19/wallet.rs
1// SPDX-License-Identifier: CC0-1.0
2
3//! Macros for implementing JSON-RPC methods on a client.
4//!
5//! Specifically this is methods found under the `== Wallet ==` section of the
6//! API docs of `bitcoind v0.19.1`.
7//!
8//! All macros require `Client` to be in scope.
9//!
10//! See or use the `define_jsonrpc_minreq_client!` macro to define a `Client`.
11
12/// Implements bitcoind JSON-RPC API method `getbalances`
13#[macro_export]
14macro_rules! impl_client_v19__getbalances {
15 () => {
16 impl Client {
17 pub fn get_balances(&self) -> Result<GetBalances> { self.call("getbalances", &[]) }
18 }
19 };
20}