Build on QRDX
How to read the chain, sign transactions and integrate the wallet, with examples you can run here.
A QRDX node speaks three protocols on one host, and they always agree because they read through the same views:
| Use it for | Testnet | |
|---|---|---|
| JSON-RPC | Ethereum-compatible calls, and every QRDX read and write | POST https://test.qrdx.org/rpc |
| REST | the same data over plain GETs, easy from any language | https://test.qrdx.org/get_… |
| Streams | live blocks, books, trades, tickers and accounts | wss://test.qrdx.org/ws, /stream (SSE) |
Above the node:
- QRDX Wallet signs for users: wallet integration and QRDX Connect.
- The trade API (
trade.qrdx.org/api/v1-test) adds pair orientation, USD prices, account summaries and PnL: trade API. - Profiles (
trade.qrdx.org/api/profiles): verified names and images: profiles.
The examples on these pages run
Every code block with a Run button calls the network chosen in its header, from your browser: testnet by default, or a node on your machine. Edit the code and run it again; ⌘/Ctrl + Enter runs too.
JavaScript examples run in a sandbox (an iframe that cannot reach this page, its storage or its cookies) with these helpers in scope:
| Helper | Does |
|---|---|
rpc(method, ...params) | JSON-RPC; returns result, throws on an RPC error |
rest(path, query?) | a node REST GET; returns result |
trade(path) | the trade API for the chosen network |
pq.keygen(seed?) | an ML-DSA-65 key pair with its address and accountId |
pq.sign(message, secretKey, { raw? }), pq.verify(message, signature, publicKey, { raw? }) | QRDX-prefixed message signatures, or raw bytes (hex) with raw: true |
pq.address(publicKey), pq.accountId(address) | address and account-id derivation |
hash.keccak256(x), hash.blake2b256(x) | hashes of text or 0x hex |
network | { node, rpc, ws, trade, explorer } |
sleep(ms) | a pause |
fetch, WebSocket and console.table work as usual. Keys made here live only in the sandbox for that run.
Where to start
Read the chain
JSON-RPC namespaces, with playgrounds for each.
Market data
Tickers, books, trades and candles for any market.
Keys and signing
Post-quantum keys, addresses and message signatures.
Exchange transactions
Build, sign and submit orders, swaps and token operations.
Streams
Live data over WebSocket or SSE.
Wallet integration
Connect a dApp to QRDX Wallet.
Libraries
There is no official SDK yet. The examples use plain fetch and @noble/post-quantum for ML-DSA-65, the same library QRDX Wallet uses; any FIPS 204 implementation (liboqs, for example) produces compatible signatures.