Skip to content

Commit

Permalink
[lbry] rpc: update README.md for examples
Browse files Browse the repository at this point in the history
  • Loading branch information
roylee17 committed Jan 4, 2022
1 parent 1e6d53b commit b6d3f5d
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions rpcclient/examples/lbcdblocknotify/README.md
Original file line number Diff line number Diff line change
@@ -1,31 +1,32 @@
lbcd Websockets Example
=======================
# lbcd Websockets Example

This example shows how to use the rpcclient package to connect to a btcd RPC
server using TLS-secured websockets, register for block connected and block
disconnected notifications, and get the current block count.

## Running the Example

The first step is to use `go get` to download and install the rpcclient package:
The first step is to clone the lbcd package:

```bash
$ go get github.com/lbryio/lbcd/rpcclient
$ git clone github.com/lbryio/lbcd
```

Next, modify the `main.go` source to specify the correct RPC username and
password for the RPC server:
Next, navigate to the example's directory and modify the `main.go` source to
specify the correct RPC username and password for the RPC server:

```bash
$ cd rpcclient/examples/lbcdblocknotify
```

```Go
User: "yourrpcuser",
Pass: "yourrpcpass",
```

Finally, navigate to the example's directory and run it with:
Finally, run it with:

```bash
$ git clone github.com/lbryio/lbcd
$ cd rpcclient/examples/lbcdblocknotify
$ go run .
```

Expand Down

0 comments on commit b6d3f5d

Please sign in to comment.