Skip to content

lnrpc protos compiled for dart to include lnd in a dart project.

Notifications You must be signed in to change notification settings

acoutts/lnd_client_dart

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lnd_client_dart

This package contains a compiled lnd client in Dart.

Usage

Create your clients and start communicating with your lnd instance:

/// Lightning client
final client = LightningClient(
  ClientChannel(
    'lnd-host',
    port: 10009,
  ),
);

/// Wallet rpc client
final wallet = WalletUnlockerClient(
  ClientChannel(
    'lnd-host',
    port: 10009,
  ),
);

/// Unlock the wallet
await wallet.unlockWallet(
  UnlockWalletRequest()..walletPassword = utf8.encode('password'),
);

/// Create an invoice for 10,000 SAT
await client.addInvoice(
  Invoice()..amtPaidSat = Int64(10000),
);

Updating protos

Important: The gen_proto.sh script expects lnd in your GOPATH with GO111MODULE=off.

  1. Get LND into your $GOPATH: GO111MODULE=off go get github.com/lightningnetwork/lnd
  2. Generate the protos using ./gen_proto.sh

About

lnrpc protos compiled for dart to include lnd in a dart project.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published