| Crates.io | dnsim |
| lib.rs | dnsim |
| version | 0.1.1 |
| created_at | 2026-01-17 12:46:17.940441+00 |
| updated_at | 2026-01-22 21:40:43.606735+00 |
| description | Unofficial Rust client for the Dune SIM API (dnsim) |
| homepage | |
| repository | https://github.com/yldfi/yldfi-rs/tree/main/crates/dnsim |
| max_upload_size | |
| id | 2050392 |
| size | 134,246 |
Unofficial Rust client for the Dune SIM API
[dependencies]
dnsim = "0.1"
tokio = { version = "1", features = ["full"] }
use dnsim::Client;
#[tokio::main]
async fn main() -> Result<(), dnsim::Error> {
let client = Client::new("your-api-key")?;
// Get supported chains
let chains = client.chains().list().await?;
for chain in chains.chains {
println!("{}: {}", chain.chain_id, chain.name);
}
// Get wallet balances
let balances = client.balances().get("0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045").await?;
for balance in balances.balances {
println!("{}: {} {}", balance.chain, balance.amount, balance.symbol);
}
Ok(())
}
DUNE_SIM_API_KEY - Your Dune SIM API key (required)MIT