Skip to content

TypeScript SDK for Republic blockchain #2

@eren-karakus0

Description

@eren-karakus0

republic-sdk - TypeScript SDK

I've built a TypeScript SDK for interacting with the Republic AI blockchain, providing a JavaScript/TypeScript alternative to the existing Python devtools.

Repository: https://github.com/eren-karakus0/republic-sdk
npm: npm install republic-sdk
License: MIT

Features

  • Key Management — ethsecp256k1 key generation, import/export with encrypted keystore (AES-256-GCM + scrypt)
  • RPC Client — Tendermint JSON-RPC + Cosmos REST API with automatic retry & exponential backoff
  • Transaction Signing — Protobuf SIGN_MODE_DIRECT (MsgSend, MsgDelegate, MsgWithdrawReward, MsgVote, MsgSubmitJob)
  • Staking & Governance — Query validators, delegations, rewards, proposals
  • Job Submission — Submit compute jobs and monitor status
  • CLI Tool — Full command-line interface for all operations
  • Dual Module — ESM + CommonJS + TypeScript declarations

Quick Example

import { RepublicKey, RepublicClient, signTx, msgSend } from 'republic-sdk';

const key = RepublicKey.generate();
const client = new RepublicClient();
const balance = await client.getBalance(key.getAddress());

Quality

  • 132 unit tests + live chain integration tests
  • CI: Node 18/20 matrix
  • Zero heavy dependencies (uses @noble/secp256k1, @noble/hashes)
  • Typed error hierarchy for programmatic error handling

Would love to get feedback from the Republic team and explore potential listing in official developer resources.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions