mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-03-13 11:09:23 +01:00
docs: Modify example WalletBalance responses
This commit is contained in:
parent
eb13be9adf
commit
965fcf5bd6
2 changed files with 4 additions and 2 deletions
|
@ -241,7 +241,9 @@ alice$ lncli walletbalance
|
||||||
# channel:
|
# channel:
|
||||||
bob$ lncli walletbalance
|
bob$ lncli walletbalance
|
||||||
{
|
{
|
||||||
"balance": 0.0001
|
"total_balance": "0.0001",
|
||||||
|
"confirmed_balance": "0.0001",
|
||||||
|
"unconfirmed_balance": "0"
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
@ -71,7 +71,7 @@ is at the default `localhost:10009`, with an open channel between the two nodes.
|
||||||
```python
|
```python
|
||||||
# Retrieve and display the wallet balance
|
# Retrieve and display the wallet balance
|
||||||
response = stub.WalletBalance(ln.WalletBalanceRequest(witness_only=True))
|
response = stub.WalletBalance(ln.WalletBalanceRequest(witness_only=True))
|
||||||
print response.balance
|
print response.total_balance
|
||||||
```
|
```
|
||||||
|
|
||||||
#### Response-streaming RPC
|
#### Response-streaming RPC
|
||||||
|
|
Loading…
Add table
Reference in a new issue