diff --git a/rpcclient/examples/bitcoincoreunixsocket/main.go b/rpcclient/examples/bitcoincoreunixsocket/main.go index 9fa67bd1bb..d18bd98343 100644 --- a/rpcclient/examples/bitcoincoreunixsocket/main.go +++ b/rpcclient/examples/bitcoincoreunixsocket/main.go @@ -16,7 +16,9 @@ func main() { // The value passed doesn't matter as long as it's valid // To avoid failures, functions relying on a host value still require one to be passed. If the client has a default host, it will be used as long as it's valid. Host: "localhost", - UnixSocketPath: "/tmp/test.XXXX" + UnixSocketPath: "/tmp/test.XXXX", + User: "yourrpcuser", + Pass: "yourrpcpass", HTTPPostMode: true, // Bitcoin core only supports HTTP POST mode DisableTLS: true, // Bitcoin core does not provide TLS by default }