pub struct TypedQueryClient { /* private fields */ }Expand description
A typed query client over the chain RPC abci_query transport.
Implementations§
Source§impl TypedQueryClient
impl TypedQueryClient
Sourcepub fn new(rpc_url: impl Into<String>) -> Self
pub fn new(rpc_url: impl Into<String>) -> Self
Creates a typed query client targeting the chain RPC URL.
Sourcepub fn with_rpc(rpc: JsonRpcClient) -> Self
pub fn with_rpc(rpc: JsonRpcClient) -> Self
Wraps an existing JsonRpcClient.
Sourcepub async fn pqc_account(
&self,
address: impl Into<String>,
) -> Result<QueryAccountResponse>
pub async fn pqc_account( &self, address: impl Into<String>, ) -> Result<QueryAccountResponse>
Queries qorechain.pqc.v1.Query/Account.
Sourcepub async fn crossvm_params(&self) -> Result<QueryParamsResponse>
pub async fn crossvm_params(&self) -> Result<QueryParamsResponse>
Queries qorechain.crossvm.v1.Query/Params.
Sourcepub async fn crossvm_pending_messages(
&self,
) -> Result<QueryPendingMessagesResponse>
pub async fn crossvm_pending_messages( &self, ) -> Result<QueryPendingMessagesResponse>
Queries qorechain.crossvm.v1.Query/PendingMessages.
Sourcepub async fn crossvm_message(
&self,
id: impl Into<String>,
) -> Result<QueryMessageResponse>
pub async fn crossvm_message( &self, id: impl Into<String>, ) -> Result<QueryMessageResponse>
Queries qorechain.crossvm.v1.Query/Message.
Sourcepub async fn lightnode(
&self,
address: impl Into<String>,
) -> Result<QueryLightNodeResponse>
pub async fn lightnode( &self, address: impl Into<String>, ) -> Result<QueryLightNodeResponse>
Queries qorechain.lightnode.v1.Query/LightNode.
Sourcepub async fn lightnodes(&self) -> Result<QueryLightNodesResponse>
pub async fn lightnodes(&self) -> Result<QueryLightNodesResponse>
Queries qorechain.lightnode.v1.Query/LightNodes.
Sourcepub async fn lightnode_params(&self) -> Result<QueryParamsResponse>
pub async fn lightnode_params(&self) -> Result<QueryParamsResponse>
Queries qorechain.lightnode.v1.Query/Params.
Sourcepub async fn lightnode_rewards(
&self,
address: impl Into<String>,
) -> Result<QueryRewardsResponse>
pub async fn lightnode_rewards( &self, address: impl Into<String>, ) -> Result<QueryRewardsResponse>
Queries qorechain.lightnode.v1.Query/Rewards.
Sourcepub async fn lightnode_stats(&self) -> Result<QueryStatsResponse>
pub async fn lightnode_stats(&self) -> Result<QueryStatsResponse>
Queries qorechain.lightnode.v1.Query/Stats.
Sourcepub async fn svm_slot(&self) -> Result<QuerySlotResponse>
pub async fn svm_slot(&self) -> Result<QuerySlotResponse>
Queries qorechain.svm.v1.Query/Slot.
Sourcepub async fn svm_account(
&self,
address: impl Into<String>,
) -> Result<QueryAccountResponse>
pub async fn svm_account( &self, address: impl Into<String>, ) -> Result<QueryAccountResponse>
Queries qorechain.svm.v1.Query/Account.
Sourcepub async fn svm_program(
&self,
address: impl Into<String>,
) -> Result<QueryProgramResponse>
pub async fn svm_program( &self, address: impl Into<String>, ) -> Result<QueryProgramResponse>
Queries qorechain.svm.v1.Query/Program.
Sourcepub async fn reputation_params(&self) -> Result<QueryParamsResponse>
pub async fn reputation_params(&self) -> Result<QueryParamsResponse>
Queries qorechain.reputation.v1.Query/Params.
Sourcepub async fn qca_config(&self) -> Result<QueryConfigResponse>
pub async fn qca_config(&self) -> Result<QueryConfigResponse>
Queries qorechain.qca.v1.Query/Config.
Sourcepub async fn rlconsensus_agent_status(&self) -> Result<QueryAgentStatusResponse>
pub async fn rlconsensus_agent_status(&self) -> Result<QueryAgentStatusResponse>
Queries qorechain.rlconsensus.v1.Query/AgentStatus.
Sourcepub async fn rlconsensus_params(&self) -> Result<QueryParamsResponse>
pub async fn rlconsensus_params(&self) -> Result<QueryParamsResponse>
Queries qorechain.rlconsensus.v1.Query/Params.
Sourcepub async fn rlconsensus_observation(&self) -> Result<QueryObservationResponse>
pub async fn rlconsensus_observation(&self) -> Result<QueryObservationResponse>
Queries qorechain.rlconsensus.v1.Query/Observation.
Sourcepub async fn rlconsensus_reward(&self) -> Result<QueryRewardResponse>
pub async fn rlconsensus_reward(&self) -> Result<QueryRewardResponse>
Queries qorechain.rlconsensus.v1.Query/Reward.
Sourcepub async fn rlconsensus_policy(&self) -> Result<QueryPolicyResponse>
pub async fn rlconsensus_policy(&self) -> Result<QueryPolicyResponse>
Queries qorechain.rlconsensus.v1.Query/Policy.
Trait Implementations§
Source§impl Clone for TypedQueryClient
impl Clone for TypedQueryClient
Source§fn clone(&self) -> TypedQueryClient
fn clone(&self) -> TypedQueryClient
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more