1
0
mirror of https://github.com/bumi/lnrpc synced 2026-02-19 17:17:49 +00:00

Update README.md

This commit is contained in:
2019-02-12 05:39:53 +00:00
committed by GitHub
parent 8cbda248c8
commit 950e233f73

View File

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