Build on Quantum Matrix Chain
Launch tokens, build dApps, and integrate quantum-secured blockchain into your project
5-Minute Quickstart
Connect, create wallet, send your first transaction
Launch a Token
Deploy a QWD-20 token in one transaction
dApp Integration
Connect your web app via window.qmc
5-Minute Quickstart
Get from zero to sending your first transaction in 5 steps.
-
Install the SDK
bashnpm install @wead/qmc-sdk
Or use a
<script>tag — the SDK works in the browser too. -
Connect to QMC
javascriptimport { QMCProvider } from "@wead/qmc-sdk"; const provider = new QMCProvider("https://wead.live"); const chainId = await provider.getChainId(); console.log("Connected! Chain ID:", chainId);
-
Create a Wallet
javascriptimport { QMCWallet } from "@wead/qmc-sdk"; const wallet = await QMCWallet.createLocal(provider); console.log("Address:", wallet.address); // Secret key is generated locally — never sent to any server.
-
Get Free QWD (Faucet)
javascriptawait wallet.faucet(); const balance = await wallet.getBalance(); console.log("Balance:", balance, "QWD");
-
Send a Transaction
javascriptconst txResult = await wallet.send({ recipient: "qwd1_recipient_address_here", value: 10, txType: "transfer" }); console.log("TX ID:", txResult.tx_id);
JavaScript SDK Reference
The @wead/qmc-sdk package provides four main classes:
QMCProvider
Connects to the chain. Read blockchain data, call RPC methods.
QMCWallet
Manage wallets, sign and send transactions — all locally in your browser.
TransactionBuilder
Low-level control over building, signing (locally), and sending transactions.
QWD20Contract
Interact with QWD-20 tokens.
Launch Your Own Token
Deploy a QWD-20 token in one transaction. No Solidity, no compiler — just JSON.
Using the SDK
Using the REST API (cURL)
Using the Web UI
No code needed! Go to /quantum-blockchain, create a wallet, get faucet QWD, then use the QWD-20 Token section to deploy with a single click.
dApp Integration
Connect your web app to QMC wallets — works like MetaMask but for QMC.
How It Works
When a user opens the QMC Web Wallet and clicks Connect dApp, it injects a window.qmc provider into the page. Your dApp can then request accounts and send transactions.
Check if QMC is Available
Request Account Access
Get Balance
Send a Transaction
All Supported Methods
qmc_requestAccounts— get user's addressqmc_accounts— list connected accountsqmc_chainId— get chain ID
qmc_getBalance— get balanceqmc_sign— sign a message (locally in the browser)qmc_sendTransaction— send a transaction
Smart Contracts
QMC has a stack-based VM for executing smart contracts. Beyond QWD-20 tokens, you can deploy custom contracts using bytecode.
VM Capabilities
Math & Logic
PUSH,POP,DUPADD,SUB,MUL,DIV,MODEQ,LT,GTAND,OR,NOTIF,ELSE,ENDIF
Storage & Context
SLOAD,SSTORE— read/write on-chain dataCALLER— address of the callerBALANCE— check any balanceTIMESTAMP,BLOCKHASHLOG— emit events (queryable viaqwd_getLogs)RETURN— return data to caller
Compile & Deploy a Custom Contract
Query Contract Events
What Can You Build?
Token Projects
Launch your token with QWD-20. Instant deployment, no compiler needed. Full transfer, approve, and allowance support.
Gaming & NFTs
Use on-chain storage for game state, achievements, or item ownership. Quantum-secured so nobody can tamper with records.
Secure Verification
Store document hashes, certificates, or proof-of-existence records on a quantum-proof chain. Future-proof against quantum attacks.
DeFi / DEX
Build exchanges or lending protocols. Use the bridge to bring assets from BNB Chain, Base, and Soneum. All secured with post-quantum cryptography.
Cross-Chain Apps
Use the QMC multi-chain bridge (BNB, Base, Soneum) to build apps that span networks. Lock assets on one chain and use them on another.
Enterprise Solutions
Run a private testnet node for your organization. NIST-approved quantum-safe signatures meet government compliance requirements.
Resources
QMC Pages
- Block Explorer — view live blocks, send transactions
- Web Wallet — encrypted browser wallet
- Full Documentation — API reference, RPC methods, config
- Quantum Signature Matrix — quantum security experiments
Quick Links
- RPC Endpoint:
POST https://wead.live/rpc - REST API:
https://wead.live/api/qchain/* - Chain ID: 7771 (mainnet) / 7772 (testnet)
- P2P Bootstrap:
ws://188.166.180.179:9900 - SDK:
npm install @wead/qmc-sdk