Update README.md

This commit is contained in:
bumi 2019-02-12 05:39:53 +00:00 committed by GitHub
parent 8cbda248c8
commit 950e233f73
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -106,10 +106,10 @@ client.get_info
# is the same as:
client.grpc_client.get_info(Lnrpc::GetInfoRequest.new, { metadata: { macaroon: macaroon } })
client.add_invoice(value: 1000, memo: 'I :heart: ruby')
client.list_channels(inactive_only: true)
# is the same as:
invoice_request = Lnrpc::AddInvoiceRequest(value: 1000, memo: 'I :heart: ruby')
client.grpc_client.add_invoice(invoice_request, { metadata: { macaroon: macaroon } })
request = Lnrpc::ListChannelsRequest(inactive_only: true)
client.grpc_client.list_channesl(request, { metadata: { macaroon: macaroon } })
```