Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
robertmin1 authored Apr 20, 2024
1 parent 89b1f74 commit 60612df
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions rpcclient/examples/bitcoincoreunixsocket/README.md
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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:

Expand Down

0 comments on commit 60612df

Please sign in to comment.