@@ -77,24 +86,43 @@ Note: "atomic units" refer to the smallest fraction of 1 XMR according to the mo
Return the wallet's balance.
Inputs: *None*.
Inputs:
**account_index* - unsigned int; Return balance for this account.
Outputs:
**balance* - unsigned int; The total balance of the current monero-wallet-rpc in session.
**unlocked_balance* - unsigned int; Unlocked funds are those funds that are sufficiently deep enough in the Monero blockchain to be considered safe to spend.
**multisig_import_needed* - boolean; True if importing multisig data is needed for returning a correct balance.
**per_subaddress* - array of subaddress information; Balance information for each subaddress in an account.
**address_index* - unsigned int; Index of the subaddress in the account.
**address* - string; Address at this index. Base58 representation of the public keys.
**balance* - unsigned int; Balance for the subaddress (locked or unlocked).
**unlocked_balance* - unsigned int; Unlocked balance for the subaddress.
**label* - string; Label for the subaddress.
**num_unspent_outputs* - unsigned int; Number of unspent outputs available for the subaddress.
Example:
```
$ curl -X POST http://127.0.0.1:18082/json_rpc -d '{"jsonrpc":"2.0","id":"0","method":"getbalance"}' -H 'Content-Type: application/json'
$ curl -X POST http://127.0.0.1:18082/json_rpc -d '{"jsonrpc":"2.0","id":"0","method":"getbalance","params":{"account_index":0}}' -H 'Content-Type: application/json'
@@ -506,15 +656,20 @@ Return a list of incoming transfers to the wallet.
Inputs:
**transfer_type* - string; "all": all the transfers, "available": only transfers which are not yet spent, OR "unavailable": only transfers which are already spent.
**account_index* - unsigned int; (Optional) Return transfers for this account.
**subaddr_indices* - array of unsigned int; (Optional) Return transfers sent to these subaddresses.