| Crates.io | bitcoin-rpc-conversions |
| lib.rs | bitcoin-rpc-conversions |
| version | 0.1.1 |
| created_at | 2025-09-29 21:09:02.897109+00 |
| updated_at | 2025-09-30 18:58:15.709391+00 |
| description | Type conversions for Bitcoin Core's JSON-RPC interface |
| homepage | |
| repository | https://github.com/nervana21/bitcoin-rpc-conversions |
| max_upload_size | |
| id | 1860211 |
| size | 54,738 |
A Rust crate for converting Bitcoin RPC types to appropriate Rust types.
[dependencies]
bitcoin-rpc-conversions = "0.1.0"
use bitcoin_rpc_conversions::{BitcoinRpcType, TypeRegistry};
let category = TypeRegistry::categorize("string", "txid");
assert_eq!(category, BitcoinRpcType::BitcoinTxid);
assert_eq!(category.to_rust_type(), "bitcoin::Txid");
MIT OR Apache-2.0
Part of the bitcoin-rpc crate ecosystem, providing type-safe Rust primitives for testing and development at the Bitcoin Core JSON-RPC interface.