Skip to content

Commit f85b4d2

Browse files
committed
docs: Update README.md
1 parent 41f08ea commit f85b4d2

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# bdk-bitcoind-client
22

33
<p>
4-
<!-- <a href="https://crates.io/crates/bdk-bitcoind-client"><img src="https://img.shields.io/crates/v/bdk-bitcoind-client.svg"/></a> -->
5-
<!-- <a href="https://docs.rs/bdk-bitcoind-client"><img src="https://img.shields.io/badge/docs.rs-bdk-bitcoind-client-orange"/></a> -->
4+
<a href="https://crates.io/crates/bdk_bitcoind_client"><img src="https://img.shields.io/crates/v/bdk_bitcoind_client.svg"/></a>
5+
<a href="https://docs.rs/bdk_bitcoind_client"><img src="https://img.shields.io/badge/docs.rs-bdk_bitcoind_client-orange.svg"/></a>
66
<a href="https://blog.rust-lang.org/2025/02/20/Rust-1.85.0/"><img src="https://img.shields.io/badge/rustc-1.85.0%2B-orange.svg"/></a>
77
<a href="https://github.com/bitcoindevkit/bdk-bitcoind-client/blob/master/LICENSE"><img src="https://img.shields.io/badge/License-MIT%2FApache--2.0-red.svg"/></a>
88
<a href="https://github.com/bitcoindevkit/bdk-bitcoind-client/actions/workflows/cont_integration.yml"><img src="https://github.com/bitcoindevkit/bdk-bitcoind-client/actions/workflows/cont_integration.yml/badge.svg"></a>
@@ -53,9 +53,10 @@ fn main() -> anyhow::Result<()> {
5353
// Define how to authenticate with `bitcoind` (Cookie File or User/Pass)
5454
let auth = Auth::CookieFile(PathBuf::from("/path/to/regtest/.cookie"));
5555
let auth = Auth::UserPass("user".to_string(), "pass".to_string());
56+
let timeout = std::time::Duration::from_secs(15);
5657

5758
// Instantiate a JSON-RPC `Client`
58-
let client = Client::with_auth("http://127.0.0.1:18443", auth)?;
59+
let client = Client::with_auth_timeout("http://127.0.0.1:18443", auth, timeout)?;
5960

6061
// Perform blockchain queries to `bitcoind` using the `Client`
6162
let block_count = client.get_block_count()?;

0 commit comments

Comments
 (0)