diff --git a/rpcclient/examples/bitcoincoreunixsocket/README.md b/rpcclient/examples/bitcoincoreunixsocket/README.md index 93a419dde3..74630b51f3 100644 --- a/rpcclient/examples/bitcoincoreunixsocket/README.md +++ b/rpcclient/examples/bitcoincoreunixsocket/README.md @@ -1,4 +1,4 @@ -Bitcoin Core HTTP POST Example +Bitcoin Core HTTP POST Over Unix Socket Example ============================== This example shows how to use the rpcclient package to connect to a Bitcoin @@ -21,7 +21,13 @@ password for the RPC server: Pass: "yourrpcpass", ``` -Since Bitcoin Core only support HTTP we will redirect RPC requests to +As Bitcoin Core supports only HTTP, we'll redirect RPC requests from the +Unix Socket to Bitcoin Core. For this example, we'll use the `socat` command: + +``` + socat -d UNIX-LISTEN:"my-unix-socket-path",fork TCP:"host-address" + socat -d UNIX-LISTEN:/tmp/test.XXXX,fork TCP:localhost:8332 +``` Finally, navigate to the example's directory and run it with: