1 btcwallet Websockets Example
2 ============================
4 This example shows how to use the rpcclient package to connect to a btcwallet
5 RPC server using TLS-secured websockets, register for notifications about
6 changes to account balances, and get a list of unspent transaction outputs
7 (utxos) the wallet can sign.
9 This example also sets a timer to shutdown the client after 10 seconds to
10 demonstrate clean shutdown.
12 ## Running the Example
14 The first step is to use `go get` to download and install the rpcclient package:
17 $ go get github.com/btcsuite/btcd/rpcclient
20 Next, modify the `main.go` source to specify the correct RPC username and
21 password for the RPC server:
28 Finally, navigate to the example's directory and run it with:
31 $ cd $GOPATH/src/github.com/btcsuite/btcd/rpcclient/examples/btcwalletwebsockets
37 This example is licensed under the [copyfree](http://copyfree.org) ISC License.