Skip to content

[DRAFT] Add examples/call_async.rs - #89

Draft
ValuedMammal wants to merge 2 commits into
bitcoindevkit:masterfrom
ValuedMammal:docs/call-async-example
Draft

[DRAFT] Add examples/call_async.rs#89
ValuedMammal wants to merge 2 commits into
bitcoindevkit:masterfrom
ValuedMammal:docs/call-async-example

Conversation

@ValuedMammal

@ValuedMammal ValuedMammal commented Aug 24, 2026

Copy link
Copy Markdown
Contributor

Description

Builds on #59.

Adds examples/call_async.rs demonstrating Client::call_async end-to-end against a bitcoind regtest node using bitreq's async feature and tokio. It authenticates via the cookie file, issues a getblockchaininfo call, and prints the deserialized GetBlockchainInfo model.

Notes to the reviewers

Opening as a draft: the example pulls in bitreq/async and tokio as new dev-dependencies, which we may not want to carry yet. Keeping this out of the merge queue until we decide whether the extra dev-deps are worth it for a single example.

@ValuedMammal
ValuedMammal force-pushed the docs/call-async-example branch from 3024d55 to 23c6fd6 Compare August 24, 2026 18:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant