npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@qorechain/sdk

v0.5.0

Published

Official TypeScript SDK for building decentralized applications on the QoreChain network.

Readme

@qorechain/sdk

Official TypeScript SDK for building decentralized applications on the QoreChain network — a quantum-safe, triple-VM Layer 1 with native, EVM, and SVM accounts.

Features

  • Full message coverage — typed composers for every chain message (bank, staking, distribution, gov, authz, feegrant, IBC, and the QoreChain custom modules), resolved through a message registry.
  • Browser wallets — Keplr/Leap (Cosmos); MetaMask/EIP-1193 and Phantom/Wallet-Standard via the @qorechain/evm and @qorechain/svm adapters.
  • Auto-gas — simulation-based fee estimation, with EVM EIP-1559 and SVM compute-budget helpers in the adapters.
  • Subscriptions — new-block and tx event streams over the consensus RPC.
  • Error decoding — structured, human-readable transaction errors.
  • NFT helpers — ERC-721 / ERC-1155 wrappers in @qorechain/evm.
  • CosmWasm lifecycle — query, upload, instantiate/instantiate2, execute, migrate, and admin management.
  • PQC — ML-DSA-87 (Dilithium-5) signing and hybrid-signature transactions.

Install

npm install @qorechain/sdk

Quickstart

Connect

createClient() targets the public testnet (chain id qorechain-diana) by default. The defaults point at localhost, so pass endpoints to talk to a real node.

import { createClient } from "@qorechain/sdk";

const client = createClient(); // testnet, localhost defaults

const remote = createClient({
  endpoints: {
    rest: "https://rest.testnet.example", // Cosmos REST (LCD)
    rpc: "https://rpc.testnet.example",    // consensus RPC (for signing)
    evmRpc: "https://evm.testnet.example", // EVM + qor_ JSON-RPC
  },
});

Mainnet (chain id qorechain-vladi) is live; target it with createClient({ network: "mainnet", endpoints }), overriding the localhost defaults with your node URLs.

Accounts

One mnemonic derives native (qor1…), EVM (0x…), and SVM (base58) accounts.

import {
  generateMnemonic,
  deriveNativeAccount,
  deriveEvmAccount,
  deriveSvmAccount,
} from "@qorechain/sdk";

const mnemonic = generateMnemonic();
const native = await deriveNativeAccount(mnemonic); // native.address → "qor1..."
const evm = await deriveEvmAccount(mnemonic);        // evm.address → "0x..."
const svm = await deriveSvmAccount(mnemonic);        // svm.address → base58

Read on-chain state

const balances = await client.rest.getAllBalances(native.address);
const tokenomics = await client.qor.getTokenomicsOverview();

Send a transfer

import { directSignerFromPrivateKey, toBase } from "@qorechain/sdk";

const account = await deriveNativeAccount(mnemonic);
const signer = await directSignerFromPrivateKey(account.privateKey, "qor");
const tx = await client.connectTx(signer);

const fee = await client.fees.estimate(); // or "fast" | "normal" | "slow"
const result = await tx.bankSend(
  "qor1recipientaddress...",
  [{ denom: "uqor", amount: toBase("1.5") }],
  { fee },
);
console.log(result.transactionHash);

Quantum-safe signing

QoreChain supports post-quantum cryptography via ML-DSA-87 (Dilithium-5) and a hybrid posture. The key/sign/verify primitives are available today through generatePqcKeypair, pqcSign, pqcVerify, and the pluggable PqcSigner / HybridSigner. Hybrid transaction submission is being finalized for the live network.

import { generatePqcKeypair, pqcSign, pqcVerify } from "@qorechain/sdk";

const keypair = generatePqcKeypair();
const message = new TextEncoder().encode("hello");
const signature = pqcSign(keypair.secretKey, message);
const ok = pqcVerify(keypair.publicKey, message, signature);

CosmWasm contracts

Interact with CosmWasm contracts via thin wrappers over @cosmjs/cosmwasm-stargate. client.cosmwasm() opens a read-only client at the rpc endpoint; for writes, connect a SigningCosmWasmClient with an offline signer.

import {
  connectCosmWasmSigner,
  queryContractSmart,
  getContractInfo,
  instantiate,
  execute,
} from "@qorechain/sdk";

// Reads
const cw = await client.cosmwasm();
const info = await getContractInfo(cw, "qor1contract...");
const state = await queryContractSmart(cw, "qor1contract...", { get_count: {} });

// Writes
const signing = await connectCosmWasmSigner("https://rpc.testnet.example", signer);
const inst = await instantiate(signing, sender, codeId, { count: 0 }, "my-contract", {
  fee: "auto",
});
await execute(signing, sender, inst.contractAddress, { increment: {} }, "auto");

Cross-VM messages

QoreChain routes calls across its native, EVM, and CosmWasm execution environments. The EVM→native direction (e.g. an EVM contract triggering a native AMM swap) is performed on-chain through the cross-VM bridge precompile exposed in the @qorechain/evm package. From this SDK you can read message state:

const pending = await client.crossvm.pending();
const message = await client.crossvm.message("42");
const params = await client.crossvm.params();

// Or track a message by id over the EVM JSON-RPC namespace:
const status = await client.qor.getCrossVmMessage("42");

Network reference

  • Mainnet chain id: qorechain-vladi (live).
  • Testnet chain id: qorechain-diana (live).
  • Token: QOR / uqor (10^6 base units per QOR).
  • Default endpoints point at localhost — override them to reach a real node.

License

Apache-2.0