QRDXDocs

JSON-RPC

Ethereum-compatible methods plus QRDX's namespaces, with a playground for each.

POST /rpc with a JSON-RPC 2.0 body, one request per call (batches are not accepted).

curl -s https://test.qrdx.org/rpc \
  -H 'content-type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"eth_blockNumber","params":[]}'

Namespaces

NamespaceFor
eth_*Ethereum-compatible: blocks, balances, calls, logs, filters, raw transactions
qrdx_*account ids, address info, intrinsic gas
exchange_*tokens, NFTs, pools, spot books, quotes; signing payloads, submission, receipts
perp_*perps markets, books, accounts, vault, events
market_*one shape for every market: tickers, books, trades, candles
tx_*the transaction index
net_*, web3_*network and client

The method reference lists all of them.

Ethereum compatibility

Standard tools (ethers, viem, web3.py) work for reads and classic transactions. Differences:

  • eth_getBalance, eth_getTransactionCount and eth_getCode also accept 0xPQ… addresses, resolved to the account id.
  • Only legacy and type-0x51 raw transactions are accepted; send EIP-1559 fees as a legacy gasPrice.
  • Native tokens are ERC-20s at their addresses, so eth_call to balanceOf works.
RPC
eth_getBalance
params⌘/Ctrl + Enter to run

Balances are hex wei (1 QRDX = 10¹⁸ wei). A 0xPQ address resolves to its account id.

Run sends this request from your browser to https://test.qrdx.org/rpc.

QRDX reads

RPC
qrdx_getAddressInfo
params⌘/Ctrl + Enter to run

Run sends this request from your browser to https://test.qrdx.org/rpc.

RPC
qrdx_getIntrinsicGas
params⌘/Ctrl + Enter to run

The floor gas a transaction must supply: envelope (legacy or pq), calldata, and whether it creates a contract. Compare pq with legacy: the post-quantum envelope pays for verifying and carrying a 5.3 KB key and signature.

Run sends this request from your browser to https://test.qrdx.org/rpc.

Exchange reads

RPC
exchange_getPools
params⌘/Ctrl + Enter to run

Run sends this request from your browser to https://test.qrdx.org/rpc.

RPC
exchange_getNonce
params⌘/Ctrl + Enter to run

Run sends this request from your browser to https://test.qrdx.org/rpc.

Perps reads

RPC
perp_getMarket
params⌘/Ctrl + Enter to run

Run sends this request from your browser to https://test.qrdx.org/rpc.

RPC
perp_getAccount
params⌘/Ctrl + Enter to run

Run sends this request from your browser to https://test.qrdx.org/rpc.

On this page