SDKs and reference
TypeScript SDK.
The
tenzro-sdk package targets Node, Bun, Deno, browsers, and edge runtimes. Same namespaces, same method names as Rust.- STATUS
- Testnet
- TYPE
- Reference
- STABILITY
- Stable
- REFERENCE
- tenzro-sdk
01
Install
pnpm add tenzro-sdk02
Connect
import { TenzroClient } from "tenzro-sdk";
const client = new TenzroClient({ endpoint: "https://rpc.tenzro.network" });
const height = await client.getBlockNumber();
console.log("height:", height);03
Inference
const models = await client.inference.listModels();
const reply = await client.provider.chat("qwen3-0.6b", [
{ role: "user", content: "Summarise the latest block" },
]);04
Payments
const challenge = await client.payment.createChallenge({
protocol: "x402",
resource: "https://api.example.com/premium",
amount: "0.10",
currency: "USDC",
});Related