1
0
mirror of https://github.com/bumi/lnrpc synced 2025-07-04 02:59:12 +00:00

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

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 } })
``` ```