Function pea_api::get::index

source ·
pub async fn index(api: &str) -> Result<Index, Box<dyn Error>>
Examples found in repository?
examples/api.rs (line 5)
4
5
6
7
8
async fn main() -> Result<(), Box<dyn Error>> {
    println!("{}", api::get::index("localhost:9332").await?);
    println!("{:?}", api::get::sync("localhost:9332").await?);
    Ok(())
}