# Typed Bitcoin UTXO Queries with Rust Rust enums can constrain address types before serialization. A fixed Testnet query demonstrates how a typed client can preserve the documented wire format without accepting arbitrary JSON from an agent. Create a Cargo binary project, place main.rs in src/, and add serde with derive, serde_json, and reqwest with blocking and json features. Review dependencies before running. Configure WAB_BTC_KEY privately; cargo run queries the local engine. UTXOs are a snapshot, not a reservation of spendable funds. The response result is deliberately generic JSON until the deployed response schema is confirmed. Never derive transaction success from the existence of a UTXO alone. Educational reference; not live-tested. See [article](https://thamer.org/learn/rust-bitcoin-utxo-client) and [API](https://thamer.org/api).