Expand description
§readwhitepaper
Rust client for the ReadWhitepaper blockchain whitepaper database API.
30 cryptocurrency whitepapers with section-level content, 163 glossary terms, full-text search, and 3,458 translations across 15 languages.
§Quick Start
use readwhitepaper::ReadWhitepaperClient;
#[tokio::main]
async fn main() -> Result<(), readwhitepaper::Error> {
let client = ReadWhitepaperClient::new();
// List all whitepapers
let whitepapers = client.list_whitepapers(None, None, None).await?;
for wp in &whitepapers.results {
println!("{} — {} ({})", wp.crypto.ticker, wp.authors[0], wp.year);
}
// Get Bitcoin whitepaper with sections
let bitcoin = client.get_whitepaper("bitcoin", None).await?;
for section in &bitcoin.sections {
println!("§{}: {}", section.section_number, section.heading_text);
}
Ok(())
}Re-exports§
pub use client::Error;pub use client::ReadWhitepaperClient;pub use types::*;