Replies: 5 comments
-
|
Wrong repo? |
Beta Was this translation helpful? Give feedback.
-
|
@guggero yes, i'm trying to connect to btcd from Rust, so it's possible? |
Beta Was this translation helpful? Give feedback.
-
|
Yes, it should be possible. The error seems to be "Connection reset by peer". So you're using the wrong port or |
Beta Was this translation helpful? Give feedback.
-
|
@guggero hmm, i don't think so, btcd ready and I have tried all possible ports |
Beta Was this translation helpful? Give feedback.
-
|
Then it's probably an issue with the IP address or firewall that you can't reach |
Beta Was this translation helpful? Give feedback.


Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Make sure that the user and password are correct:
let rpc_url = "http://172.14.198.19:18444";
let rpc = Client::new(rpc_url, Auth::UserPass("bitcoin_regtest".to_string(), "1".to_string()))
.unwrap();
let block_height = rpc.get_block_count().unwrap();
println!("Current block height: {}", block_height);
Beta Was this translation helpful? Give feedback.
All reactions