We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
You can continue the conversation there. Go to discussion →
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
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);
The text was updated successfully, but these errors were encountered:
Wrong repo? btcd is written in Go, your code seems to be Rust. Or are you trying to connect to btcd from Rust? More details please.
btcd
Sorry, something went wrong.
@guggero yes, i'm trying to connect to btcd from Rust, so it's possible?
Yes, it should be possible. The error seems to be "Connection reset by peer". So you're using the wrong port or btcd isn't ready.
@guggero hmm, i don't think so, btcd ready and I have tried all possible ports
Then it's probably an issue with the IP address or firewall that you can't reach btcd from the Rust application.
No branches or pull requests
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);
The text was updated successfully, but these errors were encountered: