QRDXDocs

JSON-RPC methods

Every JSON-RPC method a QRDX node serves, generated from the node and checked against testnet.

A node serves JSON-RPC 2.0 at POST /rpc (testnet: https://test.qrdx.org/rpc). This list is generated from the node's source and every method on it answered on testnet. Parameters marked ? are optional. Amounts and prices are decimal strings.

Peer-to-peer methods (p2p_*, dht_*) are for nodes talking to each other and are not listed. The bridge_* and validator_* namespaces are not enabled on testnet.

eth

Ethereum-compatible methods. Addresses may be 0x… or 0xPQ… (resolved to the account id). Only legacy (pre-EIP-1559) and type-0x51 raw transactions are accepted.

MethodParams
eth_chainId—Returns the chain ID (EIP-695).
eth_blockNumber—Returns the number of the most recent block.
eth_protocolVersion—Returns the current Ethereum protocol version.
eth_syncing—Returns syncing status.
eth_accounts—Returns addresses owned by the node.
eth_gasPrice—Returns the current gas price.
eth_maxPriorityFeePerGas—Returns the suggested priority fee (EIP-1559).
eth_feeHistoryblock_count, newest_block?, reward_percentiles?Returns base-fee-per-gas history (EIP-1559).
eth_getBlockByNumberblock_number, include_transactions?Returns block by number or tag.
eth_getBlockByHashblock_hash, include_transactions?Returns block by hash.
eth_getBlockTransactionCountByHashblock_hashReturns transaction count in a block by block hash.
eth_getBlockTransactionCountByNumberblock_numberReturns transaction count in a block by number.
eth_getUncleCountByBlockHashblock_hashQRDX uses Proof of Stake — no uncles.
eth_getUncleCountByBlockNumberblock_numberQRDX uses Proof of Stake — no uncles.
eth_getTransactionByHashtx_hashReturns transaction by hash.
eth_getTransactionReceipttx_hashReturns the receipt of a transaction by hash.
eth_getTransactionByBlockHashAndIndexblock_hash, indexReturns transaction by block hash and index position.
eth_getTransactionByBlockNumberAndIndexblock_number, indexReturns transaction by block number and index position.
eth_getTransactionCountaddress, block_number?Returns the number of transactions sent from an address (nonce).
eth_sendRawTransactionraw_txSubmit a signed, RLP-encoded transaction.
eth_sendTransactiontransactionSend a transaction (requires node to hold keys).
eth_getBalanceaddress, block_number?Returns the balance of an address in wei.
eth_getCodeaddress, block_number?Returns the bytecode at an address.
eth_getStorageAtaddress, position, block_number?Returns the value from a storage position at an address.
eth_calltransaction, block_number?Execute a read-only contract call (no state changes persisted).
eth_estimateGastransaction, block_number?Estimate gas for a transaction.
eth_getLogsfilter_paramsReturns logs matching the given filter.
eth_newFilterfilter_paramsCreates a new log filter for polling via eth_getFilterChanges.
eth_newBlockFilter—Creates a new block filter. Returns filter ID.
eth_newPendingTransactionFilter—Creates a pending-transaction filter. Returns filter ID.
eth_getFilterChangesfilter_idReturns new events since the last poll for the given filter.
eth_getFilterLogsfilter_idReturns all logs matching the filter (not just since last poll).
eth_uninstallFilterfilter_idUninstalls a filter. Returns True if found.
eth_createAccessListtransaction, block_number?Generate an access list for a transaction (EIP-2930).
eth_getProofaddress, storage_keys, block_number?Returns Merkle-Patricia proof for an account (EIP-1186).
eth_getUncleByBlockHashAndIndexblock_hash, indexQRDX uses PoS — no uncles.
eth_getUncleByBlockNumberAndIndexblock_number, indexQRDX uses PoS — no uncles.

qrdx

QRDX-specific reads.

MethodParams
qrdx_getAddressInfoaddressBalance, account id and address type for any address form.
qrdx_getAccountIdaddressThe 20-byte account id for any address form.
qrdx_getIntrinsicGasenvelope?, data?, is_create?The minimum gas a transaction must supply before execution begins.
qrdx_getPendingTransactionslimit?, offset?Returns pending transactions from the mempool.
qrdx_getNetworkInfo—Network statistics.
qrdx_getPeers—This node's peers.

exchange

Native tokens, NFTs, pools, spot order books, and submitting exchange transactions.

MethodParams
exchange_sendTransactiontx, propagated?Submit a signed exchange transaction (object or JSON string). Returns its hash; it executes when a block includes it.
exchange_getSigningPayloadtxThe exact bytes to sign for an unsigned exchange transaction, its hash, and the normalized transaction to add signature and public_key to.
exchange_getTransactionReceipttx_hashAn exchange transaction's result: success, error, gas, fee, and data (fills, order id, position id…). null while pending.
exchange_gasPrice—The minimum exchange gas price, in wei per gas.
exchange_getNonceaddressThe next exchange nonce for an address (committed operations only).
exchange_getTokenBalancetoken_address, addressA token balance (decimal string). token_address may be QRDX.
exchange_getTokenAccounttoken_address, addressA holder's balance of a token and whether the token's freeze authority froze it.
exchange_getTokens—Every native token.
exchange_getTokentoken_addressOne native token: supply, decimals, authorities, extensions, creator.
exchange_getAllowancetoken_address, owner, spenderAn allowance an owner gave a spender.
exchange_getNftCollections—Every NFT collection.
exchange_getNftCollectioncollectionOne NFT collection.
exchange_getNftcollection, token_idOne NFT, with its collection's royalties.
exchange_getNftsOfowner, collection?, limit?An owner's NFTs (either address form).
exchange_isNftOperatorcollection, owner, operatorWhether an operator may move all of an owner's NFTs in a collection.
exchange_isTokenOperatortoken_address, holder, operatorWhether an operator (authorized or default) may move a holder's balance of a token.
exchange_getStateRoot—The exchange state root this node computed for its head.
exchange_getPoolstoken_a?, token_b?Pools: all, or a pair's. Price, tick, active liquidity, fee tier, volume, holder address.
exchange_getPoolpool_id, twap_window?One pool with its initialized ticks and positions; twap_window (seconds) adds a time-weighted price.
exchange_quoteLiquiditypool_id, tick_lower, tick_upper, liquidity?, amount0?, amount1?The liquidity a deposit buys in a range, and the exact amounts it takes.
exchange_getPositionsaddressAn address's liquidity positions: range, liquidity, in range, and what removing pays now (principal + fees).
exchange_quoteSwaptoken_in, token_out, amount_in, sender?, pool_id?, venue?The exact fill for a swap: venue, amount out, fee, execution price, price impact.
exchange_getOrderBookpair, depth?A spot pair's book: price levels, best first, and the escrow address.
exchange_getOpenOrdersaddressAn address's resting spot orders, every pair.

perp

Perpetuals: markets, books, accounts, the vault and the event feed.

MethodParams
perp_getMarkets—Every perps market: oracle, mark and last price, open interest, best bid and ask, funding.
perp_getMarketmarket_idOne perps market (unknown id: error −32001).
perp_getOrderBookmarket_id, depth?A perps market's book.
perp_getAccountaddressCollateral, equity, margins, positions (with estimated liquidation price), orders, vault shares.
perp_getOpenOrdersaddressAn address's resting perps orders.
perp_getVault—The backstop vault: NAV, shares, share value, positions, lockup.
perp_getTradesmarket_id, limit?Recent fills in a market, oldest first.
perp_getEventsmarket_id?, address?, types?, since?, limit?The event feed: fills (with realized PnL), liquidations, funding. Filter by market, address, types; page with since.

market

One shape for every market, spot pair or perps: tickers, books, trades, candles.

MethodParams
market_getMarketskind?Every market's ticker; kind is spot or perp.
market_getTickermarketBest bid and ask, last price, 24-hour statistics; pools for a spot pair, mark and funding for perps.
market_getOrderBookmarket, depth?, level?Level 2 (price levels with running totals) or level 3 (every order) for any market.
market_getTradesmarket, limit?, since?Recent trades, oldest first; since (a sequence number) returns only newer ones.
market_getCandlesmarket, interval?, limit?, end?OHLCV candles by block time: 1m 5m 15m 1h 4h 1d.

tx

The transaction index: history per account and the latest transactions.

MethodParams
tx_getHistoryaddress, limit?, cursor?, kinds?An account's transactions, newest first, with its roles in each. Page with cursor; filter with kinds.
tx_getRecentlimit?, cursor?, kinds?The chain's latest transactions, every kind.
tx_getTransactiontx_hashOne indexed transaction and every account it touched.

net

Network status.

MethodParams
net_version—Returns the network ID.
net_listening—Returns whether the node is listening for connections.
net_peerCount—Returns the number of connected peers.

web3

Client information and hashing.

MethodParams
web3_clientVersion—Returns the client version string.
web3_sha3dataReturns Keccak-256 hash of input.

Legacy

Proof-of-work methods kept for compatibility. QRDX is proof of stake; they return placeholders.

eth_coinbase, eth_getWork, eth_hashrate, eth_mining, eth_submitHashrate, eth_submitWork, qrdx_getBlockReward, qrdx_getDifficulty, qrdx_getMiningInfo, qrdx_submitBlock

Try any method

Type a method and its params, then run it. The JSON-RPC guide has examples for each namespace.

RPC
params⌘/Ctrl + Enter to run

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

On this page