This commit is contained in:
azuchi 2021-11-22 11:03:39 +09:00
parent 80bf0bb600
commit cb549f4fe6
1 changed files with 4 additions and 4 deletions

View File

@ -24,7 +24,7 @@ Or install it yourself as:
## Usage
This gem makes the gRPC client classes created from the [LND service defintions](https://github.com/lightningnetwork/lnd/tree/master/lnrpc) available.
This gem makes the gRPC client classes created from the [LND service definitions](https://github.com/lightningnetwork/lnd/tree/master/lnrpc) available.
```ruby
require "lnrpc"
@ -32,7 +32,7 @@ require "lnrpc"
# With the changes in LND v.10.0 this load the `Lnrpc` and `Routerrpc` namespace
Lnrpc::Lightning::Stub
Routerrpc:::Routerrpc::Stub
Routerrpc::Routerrpc::Stub
Lnrpc::GetInfoRequest
...
```
@ -130,7 +130,7 @@ client.lightning.grpc.list_channels(request)
client.lightning.wallet_balance.total_balance
# is the same as:
request = Lnrpc::WalletBalanceRequest.new()
request = Lnrpc::WalletBalanceRequest.new
client.lightning.grpc.wallet_balance(request).total_balance
```