Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Sending RPC Requests to Bitcoin Core Over Unix Socket #2149

Closed
robertmin1 opened this issue Mar 29, 2024 · 1 comment
Closed

Support Sending RPC Requests to Bitcoin Core Over Unix Socket #2149

robertmin1 opened this issue Mar 29, 2024 · 1 comment

Comments

@robertmin1
Copy link
Contributor

robertmin1 commented Mar 29, 2024

It would be great to support sending RPC requests to Bitcoin Core over a Unix socket. Bitcoin Core only supports RPC over HTTP. To work around this limitation, we can send HTTP requests over a Unix socket and then redirect them to the Bitcoin Core server using a program such as socat. This approach has been tested and works without any issues.

I wanted to get your input before working on a PR. This will only involve adding a config field for the socket path and adding a Dial Context to the HTTP client + Explanation on how to use it

Here is an example of http over unix socket: https://gist.github.com/teknoraver/5ffacb8757330715bcbcc90e6d46ac74#file-unixhttpc-go-L27-L31
Benefits: Security

@robertmin1
Copy link
Contributor Author

Closed by #2168

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants