github.com/decred/dcrlnd@v0.7.6/docs/QUICKSTART.md (about) 1 # Install 2 3 Super quick start, for knowledgeable individuals. 4 5 - Use Go >= 1.16 6 - Clone repo 7 - `git clone https://github.com/decred/dcrlnd` 8 - Install: 9 - `go install ./cmd/dcrlnd` 10 - `go install ./cmd/dcrlncli` 11 - These should now work: 12 - `dcrlnd --version` 13 - `dcrlncli --version` 14 15 # Configuration 16 17 Create the config file ( `~/.dcrlnd/dcrlnd.conf` on linux, 18 `~/Library/Application Support/dcrlnd/dcrlnd.conf` on macOS, 19 `%LOCALAPPDATA%\dcrlnd\dcrlnd.conf` on Windows): 20 21 ``` 22 [Application Options] 23 24 node = "dcrw" 25 testnet = 1 26 27 [dcrwallet] 28 29 dcrwallet.spv = 1 30 ``` 31 32 # Running 33 34 Start dcrlnd: `$ dcrlnd`. 35 36 Create the wallet: `$ dcrlncli create`. Use a minimum of 8 char password. Save the seed. 37 38 # Interacting 39 40 To make it easier to interact to the node (The important bit is to always 41 specify `--testnet` when invoking `dcrlncli`): 42 43 ``` 44 $ alias ln=dcrlncli --testnet` 45 ``` 46 47 48 Get a new wallet address: `$ ln newaddress`. 49 50 Send funds to it (hint: [faucet.decred.org](https://faucet.decred.org)). 51 52 Get the balance: `$ ln walletbalance` 53 54 Connect to an online node: `$ ln connect 55 038fde001dbe4d6286ab168cfd1e9711ad0cbb8fc4e3c2312f2b42063b72af8e71@207.246.122.217:9735` 56 57 Open a channel: `$ ln openchannel --node_key=038fde001dbe4d6286ab168cfd1e9711ad0cbb8fc4e3c2312f2b42063b72af8e71 --local_amt=100000000 --push_amt 50000000` 58 59 Check on channel status: 60 61 ``` 62 $ ln pendingchannels 63 $ ln listchannels 64 ``` 65 66 Create a payment request (invoice): `$ ln addinvoice --amt=6969 --memo="Time_to_pay_the_piper!"` 67 68 Pay a payment request: 69 70 ``` 71 $ ln decodepayreq --pay_req=<PAY_REQ> 72 $ ln sendpayment --pay_req=<PAY_REQ> 73 ```