Skip to main content

JSON-RPC — qor_ Namespace

The qor_ namespace provides QoreChain-specific JSON-RPC methods for querying post-quantum cryptography status, AI analytics, cross-VM messaging, multi-layer state, bridge operations, tokenomics, rollup infrastructure, and PRISM consensus state.

Connection

TransportDefault Address
HTTPhttp://localhost:8545
WebSocketws://localhost:8546

The qor_ namespace is served alongside eth_, web3_, net_, and txpool_ on the same ports. Enable it in app.toml:

[json-rpc]
api = "eth,web3,net,txpool,qor"
note

The qor_ namespace is available on the qorechain-vladi mainnet (EVM chain ID 9801, live on chain version v3.1.85) and the qorechain-diana testnet (EVM chain ID 9800). Examples below assume a local node; substitute your provider's mainnet or testnet endpoint for remote access.


Methods

MethodParametersDescription
qor_getPQCKeyStatusaddress (string)Returns PQC key registration status for an account
qor_getHybridSignatureModenoneReturns current hybrid signature enforcement mode
qor_getAIStatsnoneReturns aggregated AI module processing statistics
qor_getCrossVMMessagemessageId (string)Retrieves a cross-VM message by its ID
qor_getReputationScorevalidator (string)Returns reputation score for a validator address
qor_getLayerInfolayerId (string)Returns metadata and status for a registered layer
qor_getBridgeStatuschainId (string)Returns bridge status and locked totals for a chain
qor_getRLAgentStatusnoneReturns current PRISM agent mode and operational status
qor_getRLObservationnoneReturns the latest PRISM observation vector
qor_getRLRewardnoneReturns cumulative PRISM reward metrics
qor_getPoolClassificationvalidator (string)Returns CPoS pool classification for a validator
qor_getBurnStatsnoneReturns burn statistics across all channels
qor_getXQOREPositionaddress (string)Returns xQORE staking position for an address
qor_getInflationRatenoneReturns current annualized inflation rate
qor_getTokenomicsOverviewnoneReturns combined burn, inflation, and supply overview
qor_getRollupStatusrollupId (string)Returns status and configuration for a specific rollup
qor_listRollupsnoneReturns a list of all registered rollups
qor_getSettlementBatchrollupId (string), batchIndex (int)Returns a specific settlement batch for a rollup
qor_suggestRollupProfileuseCase (string)AI-assisted rollup profile recommendation for a use case
qor_getDABlobStatusrollupId (string), blobIndex (int)Returns status of a specific DA blob
qor_getBTCStakingPositionaddress (string)Returns BTC staking position via the Babylon module
qor_getAbstractAccountaddress (string)Returns abstract account details and spending rules
qor_getFairBlockStatusnoneReturns FairBlock encryption status and configuration
qor_getGasAbstractionConfignoneReturns accepted tokens and gas abstraction parameters
qor_getLaneConfigurationnoneReturns 5-lane TX prioritization configuration

Examples

qor_getBurnStats

Request:

curl -X POST http://localhost:8545 \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"method": "qor_getBurnStats",
"params": [],
"id": 1
}'

Response:

{
"jsonrpc": "2.0",
"id": 1,
"result": {
"total_burned": "1250000000",
"total_distributed": "4750000000",
"channels": {
"validator_share": "0.40",
"burn_share": "0.30",
"treasury_share": "0.20",
"staker_share": "0.10"
},
"last_block_burned": "342891"
}
}

qor_getRLAgentStatus

Request:

curl -X POST http://localhost:8545 \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"method": "qor_getRLAgentStatus",
"params": [],
"id": 2
}'

Response:

{
"jsonrpc": "2.0",
"id": 2,
"result": {
"agent_mode": "observe",
"observation_interval": 10,
"circuit_breaker": {
"active": false,
"max_param_change": "0.10",
"cooldown_blocks": 100
},
"last_observation_block": "342885",
"cumulative_reward": "18.742"
}
}

qor_getRollupStatus

Request:

curl -X POST http://localhost:8545 \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"method": "qor_getRollupStatus",
"params": ["rollup-001"],
"id": 3
}'

Response:

{
"jsonrpc": "2.0",
"id": 3,
"result": {
"rollup_id": "rollup-001",
"status": "active",
"settlement_type": "optimistic",
"operator": "qor1abc123...",
"total_batches": 147,
"last_finalized_batch": 145,
"pending_batches": 2,
"stake": "10000000000uqor",
"created_at_height": 100230
}
}

Error Codes

CodeMessageDescription
-32600Invalid RequestMalformed JSON-RPC request
-32601Method not foundThe method does not exist
-32602Invalid paramsMissing or invalid parameters
-32603Internal errorServer-side processing error
-32000Module disabledThe queried module is not enabled
-32001Entity not foundThe requested resource does not exist