1pub mod accounts;
2pub mod client;
3pub mod error;
4pub mod plan;
5pub mod types;
6
7pub use client::LegendPrime;
8pub use error::{LegendPrimeError, Result};
9pub use types::*;
10
11use reqwest::Method;
12
13impl LegendPrime {
14 pub async fn prime_account(&self) -> Result<PrimeAccount> {
15 self.inner
16 .request(Method::GET, "/prime_account", None::<&()>)
17 .await
18 }
19
20 pub async fn networks(&self) -> Result<NetworkList> {
21 self.inner
22 .request(Method::GET, "/networks", None::<&()>)
23 .await
24 }
25
26 pub async fn assets(&self) -> Result<AssetMap> {
27 self.inner
28 .request(Method::GET, "/assets", None::<&()>)
29 .await
30 }
31}