A regtest setup will save you a lot of time as it allows you to test Zap in a simulated network.
The easiest way to create and manage simulated regtest networks is by using Polar.
- Download Polar
- Setup a network in Polar with at least one LND node.
To connect Zap with a simulated LND node:
- Click on a LND node in Polar and navigate to the connect tab.
- Select "LND Connect" in the sub tab.
- Copy the connect string using the copy icon.
- Open a textfile and paste the string there. It should now look something like this:
lndconnect://127.0.0.1:10001?cert=MIICBzCC...
- Now it depends if you want to connect from the Android Studio emulator or from a physical phone.
For the emulator you have to replace the IP address with 10.0.2.2, for a phone you have to replace it with the local network IP address of the computer running polar. The result should look something like this:
Emulator:
lndconnect://10.0.2.2:10001?cert=MIICBzCC...
Phone:lndconnect://192.168.0.62:10001?cert=MIICBzCC...
- Copy this edited connect string and paste it in Zap on the connect remote node screen or on the general scan screen.
- Have fun testing!
Please note that connecting to regtest nodes will only work when building with debug build variant.