SDKs and reference
Rust SDK.
The
tenzro-sdk crate wraps JSON-RPC with typed namespaces, retry policies, and a ProviderClient backed by reqwest.- STATUS
- Testnet
- CRATE
- tenzro-sdk
- STABILITY
- Stable
- TYPE
- Reference
01
Install
# Cargo.toml
[dependencies]
tenzro-sdk = { git = "https://github.com/tenzro/tenzro-sdk-rust" }
tokio = { version = "1", features = ["full"] }02
Connect
use tenzro_sdk::ProviderClient;
#[tokio::main]
async fn main() -> anyhow::Result<()> {
let client = ProviderClient::new("https://rpc.tenzro.network");
let height = client.block_number().await?;
println!("height: {height}");
Ok(())
}03
Inference
let models = client.list_models().await?;
let reply = client
.chat("qwen3-0.6b", "Summarise the latest block")
.await?;04
Agents and tasks
The agent and task marketplaces are typed under client.agent() and client.task(). Both return strongly-typed records mirrored from tenzro-types.
Related