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

kuantum-qrng-sdk

v1.0.2

Published

Official TypeScript SDK for the Monad Quantum Randomness Oracle (QRNG)

Readme

kuantum-qrng-sdk

Official TypeScript/JavaScript SDK for the Monad Quantum Randomness Oracle (QRNG).

Get authentic, post-quantum physical entropy on the Monad network in a single block. Powered by physical quantum vacuum fluctuations (ANU & qrandom.io) and secured via ECDSA cryptographic signatures.


Installation

Install the SDK along with its peer dependency ethers (v6):

npm install kuantum-qrng-sdk ethers

Quickstart

Initialize the SDK using a Monad RPC provider, the contract address, and your wallet's private key (required to pay gas fees for the transaction):

import { QuantumSDK } from "kuantum-qrng-sdk";
import { ethers } from "ethers";

// 1. Setup provider and wallet signer
const provider = new ethers.JsonRpcProvider("https://testnet-rpc.monad.xyz");
const wallet = new ethers.Wallet("YOUR_PRIVATE_KEY", provider);

// 2. Initialize the SDK
const contractAddress = "0xe7f1725E7734CE288F8367e1Bb143E90bb3F0512";
const oracle = new QuantumSDK(provider, contractAddress, "YOUR_PRIVATE_KEY");

Usage

⚡ Pull & Verify in One Click (Recommended)

Fetches the signed quantum entropy from the relayer and automatically submits the verification transaction to your Monad contract in a single step:

async function requestQuantumRandomness() {
  try {
    console.log("Requesting quantum entropy...");
    const txHash = await oracle.fetchAndSubmitRandom();
    console.log(`Verification Transaction Submitted! Hash: ${txHash}`);
  } catch (error) {
    console.error("Failed to request quantum randomness:", error);
  }
}

🔍 Read Last Verified Number

Queries the smart contract on-chain to read the last verified quantum random value:

async function printLastNumber() {
  const num = await oracle.getLastRandomNumber();
  console.log(`Last Verified Quantum Number: ${num}`); // uint8 (0-255)
}

Smart Contract Integration (Solidity)

Your Monad smart contract should implement the interface to read the latest validated random number:

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;

interface IQuantumOracle {
    function lastRandomNumber() external view returns (uint8);
}

contract MyGame {
    address public oracleAddress = 0xe7f1725E7734CE288F8367e1Bb143E90bb3F0512;

    function rollDice() external returns (uint8) {
        uint8 quantumEntropy = IQuantumOracle(oracleAddress).lastRandomNumber();
        return (quantumEntropy % 6) + 1; // 1-6 Dice Roll
    }
}

License

MIT