Neutrino Remote Control
This tutorial assumes that you have already downloaded and installed Zap and created a wallet. If not, please head over to our getting started guide.
Zap installs lnd for you as part of the installation process. Zap will automatically start the internal lnd daemon for you when you select the default connection type during the on-boarding process. In this mode we run lnd as a light client called neutrino (BIP 157 & BIP 158) which allows us to run lnd without requiring a Bitcoin full node on your system - Instead, Zap will connect to one of Zap's hosted BTC full nodes in order to retrieve information from the blockchain.
Connecting to the lnd node
For some advanced use cases you may wish to connect directly to Zap's internal lnd daemon so that you can control it programmatically, without using the Zap user interface. There are two ways that you can do this:
By default, we make lnd's gRPC interface accessible at
Documentation for lnd's gRPC API is available here.
By default, we make lnd's REST interface accessible at
Documentation for lnd's REST API is available here.
TLS/SSL & Macaroons
Two things are needed in order to make a gRPC or HTTP request to an lnd instance: a TLS/SSL connection and a macaroon used for RPC authentication.
The macaroons for your lnd node will be located within your Zap data directory, found in one of the following locations:
Note: If you have created multiple wallets within Zap, the location may vary.
By default the gRPC and REST interfaces are only accessible from the localhost. If you would like to access your node from another machine you will need to adjust Zap's config files and rebuild Zap from source. Please refer to our technical documentation for more details.