pub struct QorClient { /* private fields */ }Expand description
A typed client for the QoreChain qor_* JSON-RPC namespace. Point it at the
network’s EVM JSON-RPC endpoint.
Implementations§
Source§impl QorClient
impl QorClient
Sourcepub fn new(url: impl Into<String>) -> Self
pub fn new(url: impl Into<String>) -> Self
Creates a QorClient targeting the given (EVM JSON-RPC) URL using a fresh
HTTP client.
Sourcepub fn from_jsonrpc(rpc: JsonRpcClient) -> Self
pub fn from_jsonrpc(rpc: JsonRpcClient) -> Self
Creates a QorClient from an existing JSON-RPC client.
Sourcepub fn rpc(&self) -> &JsonRpcClient
pub fn rpc(&self) -> &JsonRpcClient
Access the underlying JSON-RPC transport.
Sourcepub async fn get_pqc_key_status(&self, address: &str) -> Result<Value>
pub async fn get_pqc_key_status(&self, address: &str) -> Result<Value>
qor_getPQCKeyStatus
Sourcepub async fn get_hybrid_signature_mode(&self) -> Result<Value>
pub async fn get_hybrid_signature_mode(&self) -> Result<Value>
qor_getHybridSignatureMode
Sourcepub async fn get_ai_stats(&self) -> Result<Value>
pub async fn get_ai_stats(&self) -> Result<Value>
qor_getAIStats
Sourcepub async fn get_cross_vm_message(&self, message_id: &str) -> Result<Value>
pub async fn get_cross_vm_message(&self, message_id: &str) -> Result<Value>
qor_getCrossVMMessage
Sourcepub async fn get_reputation_score(&self, validator: &str) -> Result<Value>
pub async fn get_reputation_score(&self, validator: &str) -> Result<Value>
qor_getReputationScore
Sourcepub async fn get_pool_classification(&self, validator: &str) -> Result<Value>
pub async fn get_pool_classification(&self, validator: &str) -> Result<Value>
qor_getPoolClassification
Sourcepub async fn get_layer_info(&self, layer_id: &str) -> Result<Value>
pub async fn get_layer_info(&self, layer_id: &str) -> Result<Value>
qor_getLayerInfo
Sourcepub async fn get_bridge_status(&self, chain_id: &str) -> Result<Value>
pub async fn get_bridge_status(&self, chain_id: &str) -> Result<Value>
qor_getBridgeStatus
Sourcepub async fn get_rl_agent_status(&self) -> Result<Value>
pub async fn get_rl_agent_status(&self) -> Result<Value>
qor_getRLAgentStatus
Sourcepub async fn get_rl_observation(&self) -> Result<Value>
pub async fn get_rl_observation(&self) -> Result<Value>
qor_getRLObservation
Sourcepub async fn get_rl_reward(&self) -> Result<Value>
pub async fn get_rl_reward(&self) -> Result<Value>
qor_getRLReward
Sourcepub async fn get_burn_stats(&self) -> Result<Value>
pub async fn get_burn_stats(&self) -> Result<Value>
qor_getBurnStats
Sourcepub async fn get_xqore_position(&self, address: &str) -> Result<Value>
pub async fn get_xqore_position(&self, address: &str) -> Result<Value>
qor_getXQOREPosition
Sourcepub async fn get_inflation_rate(&self) -> Result<Value>
pub async fn get_inflation_rate(&self) -> Result<Value>
qor_getInflationRate
Sourcepub async fn get_tokenomics_overview(&self) -> Result<Value>
pub async fn get_tokenomics_overview(&self) -> Result<Value>
qor_getTokenomicsOverview
Sourcepub async fn get_rollup_status(&self, rollup_id: &str) -> Result<Value>
pub async fn get_rollup_status(&self, rollup_id: &str) -> Result<Value>
qor_getRollupStatus
Sourcepub async fn list_rollups(&self) -> Result<Value>
pub async fn list_rollups(&self) -> Result<Value>
qor_listRollups
Sourcepub async fn get_settlement_batch(
&self,
rollup_id: &str,
batch_index: u64,
) -> Result<Value>
pub async fn get_settlement_batch( &self, rollup_id: &str, batch_index: u64, ) -> Result<Value>
qor_getSettlementBatch
Sourcepub async fn suggest_rollup_profile(&self, use_case: &str) -> Result<Value>
pub async fn suggest_rollup_profile(&self, use_case: &str) -> Result<Value>
qor_suggestRollupProfile
Sourcepub async fn get_da_blob_status(
&self,
rollup_id: &str,
blob_index: u64,
) -> Result<Value>
pub async fn get_da_blob_status( &self, rollup_id: &str, blob_index: u64, ) -> Result<Value>
qor_getDABlobStatus
Sourcepub async fn get_btc_staking_position(&self, address: &str) -> Result<Value>
pub async fn get_btc_staking_position(&self, address: &str) -> Result<Value>
qor_getBTCStakingPosition
Sourcepub async fn get_abstract_account(&self, address: &str) -> Result<Value>
pub async fn get_abstract_account(&self, address: &str) -> Result<Value>
qor_getAbstractAccount
Sourcepub async fn get_fair_block_status(&self) -> Result<Value>
pub async fn get_fair_block_status(&self) -> Result<Value>
qor_getFairBlockStatus
Sourcepub async fn get_gas_abstraction_config(&self) -> Result<Value>
pub async fn get_gas_abstraction_config(&self) -> Result<Value>
qor_getGasAbstractionConfig
Sourcepub async fn get_lane_configuration(&self) -> Result<Value>
pub async fn get_lane_configuration(&self) -> Result<Value>
qor_getLaneConfiguration