KuberCoin Docs

SDK

Rust and TypeScript client libraries.

Overview

Two first-party client libraries are maintained alongside the reference node: a Rust crate for systems integrations and a TypeScript package for browser and Node.js applications. Both target the public RPC at rpc.kuber-coin.com by default but accept a custom endpoint.

Rust

// Cargo.toml
[dependencies]
kubercoin-client = "0.4"

// main.rs
use kubercoin_client::Client;

let client = Client::new("https://rpc.kuber-coin.com/api/rpc");
let height = client.get_block_height().await?;
println!("tip = {height}");

TypeScript

// package.json
"dependencies": { "@kubercoin/client": "^0.4.0" }

// app.ts
import { KuberClient } from "@kubercoin/client";

const client = new KuberClient({ endpoint: "https://rpc.kuber-coin.com/api/rpc" });
const balance = await client.getBalance("kuber1q...");
console.log(balance);

Source mirrors

Read-only source mirrors are published at open.kuber-coin.com. Tagged release artefacts are signed with the maintainers' release key documented on the security policy page.