pub struct HttpRpcClient { /* private fields */ }Expand description
A JSON-RPC/HTTP Tendermint RPC client (implements crate::Client).
Supports both HTTP and HTTPS connections to Tendermint RPC endpoints, and
allows for the use of HTTP proxies (see HttpClient::new_with_proxy for
details).
Does not provide crate::event::Event subscription facilities (see
[crate::WebSocketClient] for a client that does).
§Examples
use tendermint_rpc::{HttpClient, Client};
#[tokio::main]
async fn main() {
let client = HttpClient::new("http://127.0.0.1:26657")
.unwrap();
let abci_info = client.abci_info()
.await
.unwrap();
println!("Got ABCI info: {:?}", abci_info);
}Implementations§
Source§impl HttpClient
impl HttpClient
Sourcepub fn new_from_parts(inner: Client, url: Url, compat: CompatMode) -> HttpClient
pub fn new_from_parts(inner: Client, url: Url, compat: CompatMode) -> HttpClient
Construct a new Tendermint RPC HTTP/S client connecting to the given
URL. This avoids using the Builder and thus does not perform any
validation of the configuration.
Sourcepub fn new<U>(url: U) -> Result<HttpClient, Error>
pub fn new<U>(url: U) -> Result<HttpClient, Error>
Construct a new Tendermint RPC HTTP/S client connecting to the given URL.
Sourcepub fn new_with_proxy<U, P>(url: U, proxy_url: P) -> Result<HttpClient, Error>
pub fn new_with_proxy<U, P>(url: U, proxy_url: P) -> Result<HttpClient, Error>
Construct a new Tendermint RPC HTTP/S client connecting to the given URL, but via the specified proxy’s URL.
If the RPC endpoint is secured (HTTPS), the proxy will automatically attempt to connect using the HTTP CONNECT method.
Sourcepub fn builder(url: HttpClientUrl) -> Builder
pub fn builder(url: HttpClientUrl) -> Builder
Initiate a builder for a Tendermint RPC HTTP/S client connecting to the given URL, so that more configuration options can be specified with the builder.
Sourcepub fn set_compat_mode(&mut self, compat: CompatMode)
pub fn set_compat_mode(&mut self, compat: CompatMode)
Set compatibility mode on the instantiated client.
As the HTTP client is stateless and does not support subscriptions,
the protocol version it uses can be changed at will, for example,
as a result of version discovery over the /status endpoint.
Trait Implementations§
Source§impl Client for HttpClient
impl Client for HttpClient
Source§fn broadcast_evidence<'life0, 'async_trait>(
&'life0 self,
evidence: Evidence,
) -> Pin<Box<dyn Future<Output = Result<Response, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
HttpClient: 'async_trait,
fn broadcast_evidence<'life0, 'async_trait>(
&'life0 self,
evidence: Evidence,
) -> Pin<Box<dyn Future<Output = Result<Response, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
HttpClient: 'async_trait,
/broadcast_evidence: broadcast an evidence.
Source§fn perform<'life0, 'async_trait, R>(
&'life0 self,
request: R,
) -> Pin<Box<dyn Future<Output = Result<<R as SimpleRequest>::Output, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
R: SimpleRequest + 'async_trait,
HttpClient: 'async_trait,
fn perform<'life0, 'async_trait, R>(
&'life0 self,
request: R,
) -> Pin<Box<dyn Future<Output = Result<<R as SimpleRequest>::Output, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
R: SimpleRequest + 'async_trait,
HttpClient: 'async_trait,
Source§fn block<'life0, 'async_trait, H>(
&'life0 self,
height: H,
) -> Pin<Box<dyn Future<Output = Result<Response, Error>> + Send + 'async_trait>>
fn block<'life0, 'async_trait, H>( &'life0 self, height: H, ) -> Pin<Box<dyn Future<Output = Result<Response, Error>> + Send + 'async_trait>>
/block: get block at a given height.Source§fn block_by_hash<'life0, 'async_trait>(
&'life0 self,
hash: Hash,
) -> Pin<Box<dyn Future<Output = Result<Response, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
HttpClient: 'async_trait,
fn block_by_hash<'life0, 'async_trait>(
&'life0 self,
hash: Hash,
) -> Pin<Box<dyn Future<Output = Result<Response, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
HttpClient: 'async_trait,
/block_by_hash: get block by hash.Source§fn latest_block<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Response, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
HttpClient: 'async_trait,
fn latest_block<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Response, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
HttpClient: 'async_trait,
/block: get the latest block.Source§fn block_results<'life0, 'async_trait, H>(
&'life0 self,
height: H,
) -> Pin<Box<dyn Future<Output = Result<Response, Error>> + Send + 'async_trait>>
fn block_results<'life0, 'async_trait, H>( &'life0 self, height: H, ) -> Pin<Box<dyn Future<Output = Result<Response, Error>> + Send + 'async_trait>>
/block_results: get ABCI results for a block at a particular height.Source§fn latest_block_results<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Response, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
HttpClient: 'async_trait,
fn latest_block_results<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Response, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
HttpClient: 'async_trait,
/block_results: get ABCI results for the latest block.Source§fn block_search<'life0, 'async_trait>(
&'life0 self,
query: Query,
page: u32,
per_page: u8,
order: Order,
) -> Pin<Box<dyn Future<Output = Result<Response, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
HttpClient: 'async_trait,
fn block_search<'life0, 'async_trait>(
&'life0 self,
query: Query,
page: u32,
per_page: u8,
order: Order,
) -> Pin<Box<dyn Future<Output = Result<Response, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
HttpClient: 'async_trait,
/block_search: search for blocks by BeginBlock and EndBlock events.Source§fn header<'life0, 'async_trait, H>(
&'life0 self,
height: H,
) -> Pin<Box<dyn Future<Output = Result<Response, Error>> + Send + 'async_trait>>
fn header<'life0, 'async_trait, H>( &'life0 self, height: H, ) -> Pin<Box<dyn Future<Output = Result<Response, Error>> + Send + 'async_trait>>
/header: get block header at a given height.Source§fn header_by_hash<'life0, 'async_trait>(
&'life0 self,
hash: Hash,
) -> Pin<Box<dyn Future<Output = Result<Response, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
HttpClient: 'async_trait,
fn header_by_hash<'life0, 'async_trait>(
&'life0 self,
hash: Hash,
) -> Pin<Box<dyn Future<Output = Result<Response, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
HttpClient: 'async_trait,
/header_by_hash: get block by hash.Source§fn tx<'life0, 'async_trait>(
&'life0 self,
hash: Hash,
prove: bool,
) -> Pin<Box<dyn Future<Output = Result<Response, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
HttpClient: 'async_trait,
fn tx<'life0, 'async_trait>(
&'life0 self,
hash: Hash,
prove: bool,
) -> Pin<Box<dyn Future<Output = Result<Response, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
HttpClient: 'async_trait,
/tx: find transaction by hash.Source§fn tx_search<'life0, 'async_trait>(
&'life0 self,
query: Query,
prove: bool,
page: u32,
per_page: u8,
order: Order,
) -> Pin<Box<dyn Future<Output = Result<Response, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
HttpClient: 'async_trait,
fn tx_search<'life0, 'async_trait>(
&'life0 self,
query: Query,
prove: bool,
page: u32,
per_page: u8,
order: Order,
) -> Pin<Box<dyn Future<Output = Result<Response, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
HttpClient: 'async_trait,
/tx_search: search for transactions with their results.Source§fn broadcast_tx_commit<'life0, 'async_trait, T>(
&'life0 self,
tx: T,
) -> Pin<Box<dyn Future<Output = Result<Response, Error>> + Send + 'async_trait>>
fn broadcast_tx_commit<'life0, 'async_trait, T>( &'life0 self, tx: T, ) -> Pin<Box<dyn Future<Output = Result<Response, Error>> + Send + 'async_trait>>
/broadcast_tx_commit: broadcast a transaction, returning the response
from DeliverTx.Source§fn abci_info<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Info, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: Sync + 'async_trait,
fn abci_info<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Info, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: Sync + 'async_trait,
/abci_info: get information about the ABCI application.Source§fn abci_query<'life0, 'async_trait, V>(
&'life0 self,
path: Option<String>,
data: V,
height: Option<Height>,
prove: bool,
) -> Pin<Box<dyn Future<Output = Result<AbciQuery, Error>> + Send + 'async_trait>>
fn abci_query<'life0, 'async_trait, V>( &'life0 self, path: Option<String>, data: V, height: Option<Height>, prove: bool, ) -> Pin<Box<dyn Future<Output = Result<AbciQuery, Error>> + Send + 'async_trait>>
/abci_query: query the ABCI applicationSource§fn blockchain<'life0, 'async_trait, H>(
&'life0 self,
min: H,
max: H,
) -> Pin<Box<dyn Future<Output = Result<Response, Error>> + Send + 'async_trait>>
fn blockchain<'life0, 'async_trait, H>( &'life0 self, min: H, max: H, ) -> Pin<Box<dyn Future<Output = Result<Response, Error>> + Send + 'async_trait>>
Source§fn broadcast_tx_async<'life0, 'async_trait, T>(
&'life0 self,
tx: T,
) -> Pin<Box<dyn Future<Output = Result<Response, Error>> + Send + 'async_trait>>
fn broadcast_tx_async<'life0, 'async_trait, T>( &'life0 self, tx: T, ) -> Pin<Box<dyn Future<Output = Result<Response, Error>> + Send + 'async_trait>>
/broadcast_tx_async: broadcast a transaction, returning immediately.Source§fn broadcast_tx_sync<'life0, 'async_trait, T>(
&'life0 self,
tx: T,
) -> Pin<Box<dyn Future<Output = Result<Response, Error>> + Send + 'async_trait>>
fn broadcast_tx_sync<'life0, 'async_trait, T>( &'life0 self, tx: T, ) -> Pin<Box<dyn Future<Output = Result<Response, Error>> + Send + 'async_trait>>
/broadcast_tx_sync: broadcast a transaction, returning the response
from CheckTx.Source§fn commit<'life0, 'async_trait, H>(
&'life0 self,
height: H,
) -> Pin<Box<dyn Future<Output = Result<Response, Error>> + Send + 'async_trait>>
fn commit<'life0, 'async_trait, H>( &'life0 self, height: H, ) -> Pin<Box<dyn Future<Output = Result<Response, Error>> + Send + 'async_trait>>
/commit: get block commit at a given height.Source§fn consensus_params<'life0, 'async_trait, H>(
&'life0 self,
height: H,
) -> Pin<Box<dyn Future<Output = Result<Response, Error>> + Send + 'async_trait>>
fn consensus_params<'life0, 'async_trait, H>( &'life0 self, height: H, ) -> Pin<Box<dyn Future<Output = Result<Response, Error>> + Send + 'async_trait>>
/consensus_params: get current consensus parameters at the specified
height.Source§fn consensus_state<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Response, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: Sync + 'async_trait,
fn consensus_state<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Response, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: Sync + 'async_trait,
/consensus_state: get current consensus stateSource§fn validators<'life0, 'async_trait, H>(
&'life0 self,
height: H,
paging: Paging,
) -> Pin<Box<dyn Future<Output = Result<Response, Error>> + Send + 'async_trait>>
fn validators<'life0, 'async_trait, H>( &'life0 self, height: H, paging: Paging, ) -> Pin<Box<dyn Future<Output = Result<Response, Error>> + Send + 'async_trait>>
/validators: get validators a given height.Source§fn latest_consensus_params<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Response, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: Sync + 'async_trait,
fn latest_consensus_params<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Response, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: Sync + 'async_trait,
/consensus_params: get the latest consensus parameters.Source§fn latest_commit<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Response, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: Sync + 'async_trait,
fn latest_commit<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Response, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: Sync + 'async_trait,
/commit: get the latest block commitSource§fn health<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: Sync + 'async_trait,
fn health<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: Sync + 'async_trait,
/health: get node health. Read moreSource§fn genesis<'life0, 'async_trait, AppState>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Genesis<AppState>, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
AppState: Debug + Serialize + DeserializeOwned + Send + 'async_trait,
Self: Sync + 'async_trait,
fn genesis<'life0, 'async_trait, AppState>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Genesis<AppState>, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
AppState: Debug + Serialize + DeserializeOwned + Send + 'async_trait,
Self: Sync + 'async_trait,
/genesis: get genesis file.fn genesis_chunked<'life0, 'async_trait>(
&'life0 self,
chunk: u64,
) -> Pin<Box<dyn Future<Output = Result<Response, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: Sync + 'async_trait,
Source§fn genesis_chunked_stream<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Pin<Box<dyn Stream<Item = Result<Vec<u8>, Error>> + 'life0>>> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: Sync + 'async_trait,
fn genesis_chunked_stream<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Pin<Box<dyn Stream<Item = Result<Vec<u8>, Error>> + 'life0>>> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: Sync + 'async_trait,
/genesis_chunked: get genesis file in multiple chunks.Source§fn net_info<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Response, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: Sync + 'async_trait,
fn net_info<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Response, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: Sync + 'async_trait,
/net_info: obtain information about P2P and other network connections.Source§fn status<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Response, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: Sync + 'async_trait,
fn status<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Response, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: Sync + 'async_trait,
/status: get Tendermint status including node info, pubkey, latest
block hash, app hash, block height and time.Source§impl Clone for HttpClient
impl Clone for HttpClient
Source§fn clone(&self) -> HttpClient
fn clone(&self) -> HttpClient
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for HttpClient
impl !UnwindSafe for HttpClient
impl Freeze for HttpClient
impl Send for HttpClient
impl Sync for HttpClient
impl Unpin for HttpClient
impl UnsafeUnpin for HttpClient
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> CosmWasmClient for Twhere
T: TendermintRpcClient,
impl<T> CosmWasmClient for Twhere
T: TendermintRpcClient,
fn make_abci_query<'life0, 'async_trait, Req, Res>( &'life0 self, path: Option<String>, req: Req, ) -> Pin<Box<dyn Future<Output = Result<Res, NyxdError>> + Send + 'async_trait>>
fn get_chain_id<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Id, NyxdError>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
fn get_height<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Height, NyxdError>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
fn get_account<'life0, 'life1, 'async_trait>(
&'life0 self,
address: &'life1 AccountId,
) -> Pin<Box<dyn Future<Output = Result<Option<Account>, NyxdError>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_sequence<'life0, 'life1, 'async_trait>(
&'life0 self,
address: &'life1 AccountId,
) -> Pin<Box<dyn Future<Output = Result<SequenceResponse, NyxdError>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_block<'life0, 'async_trait>(
&'life0 self,
height: Option<u32>,
) -> Pin<Box<dyn Future<Output = Result<BlockResponse, NyxdError>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
fn get_balance<'life0, 'life1, 'async_trait>(
&'life0 self,
address: &'life1 AccountId,
search_denom: String,
) -> Pin<Box<dyn Future<Output = Result<Option<Coin>, NyxdError>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_all_balances<'life0, 'life1, 'async_trait>(
&'life0 self,
address: &'life1 AccountId,
) -> Pin<Box<dyn Future<Output = Result<Vec<Coin>, NyxdError>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_total_supply<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Vec<Coin>, NyxdError>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
fn get_tx<'life0, 'async_trait>(
&'life0 self,
id: Hash,
) -> Pin<Box<dyn Future<Output = Result<TxResponse, NyxdError>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
fn search_tx<'life0, 'async_trait>(
&'life0 self,
query: Query,
) -> Pin<Box<dyn Future<Output = Result<Vec<TxResponse>, NyxdError>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
Source§fn broadcast_tx_async<'life0, 'async_trait, T>(
&'life0 self,
tx: T,
) -> Pin<Box<dyn Future<Output = Result<Response, NyxdError>> + Send + 'async_trait>>
fn broadcast_tx_async<'life0, 'async_trait, T>( &'life0 self, tx: T, ) -> Pin<Box<dyn Future<Output = Result<Response, NyxdError>> + Send + 'async_trait>>
Source§fn broadcast_tx_sync<'life0, 'async_trait, T>(
&'life0 self,
tx: T,
) -> Pin<Box<dyn Future<Output = Result<Response, NyxdError>> + Send + 'async_trait>>
fn broadcast_tx_sync<'life0, 'async_trait, T>( &'life0 self, tx: T, ) -> Pin<Box<dyn Future<Output = Result<Response, NyxdError>> + Send + 'async_trait>>
CheckTx.Source§fn broadcast_tx_commit<'life0, 'async_trait, T>(
&'life0 self,
tx: T,
) -> Pin<Box<dyn Future<Output = Result<Response, NyxdError>> + Send + 'async_trait>>
fn broadcast_tx_commit<'life0, 'async_trait, T>( &'life0 self, tx: T, ) -> Pin<Box<dyn Future<Output = Result<Response, NyxdError>> + Send + 'async_trait>>
DeliverTx.fn broadcast_tx<'life0, 'async_trait, T>( &'life0 self, tx: T, timeout: impl 'async_trait + Into<Option<Duration>> + Send, poll_interval: impl 'async_trait + Into<Option<Duration>> + Send, ) -> Pin<Box<dyn Future<Output = Result<TxResponse, NyxdError>> + Send + 'async_trait>>
fn get_codes<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Vec<CodeInfoResponse>, NyxdError>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
fn get_code_details<'life0, 'async_trait>(
&'life0 self,
code_id: ContractCodeId,
) -> Pin<Box<dyn Future<Output = Result<CodeDetails, NyxdError>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
fn get_contracts<'life0, 'async_trait>(
&'life0 self,
code_id: ContractCodeId,
) -> Pin<Box<dyn Future<Output = Result<Vec<AccountId>, NyxdError>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
fn get_contract<'life0, 'life1, 'async_trait>(
&'life0 self,
address: &'life1 AccountId,
) -> Pin<Box<dyn Future<Output = Result<Contract, NyxdError>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_contract_code_history<'life0, 'life1, 'async_trait>(
&'life0 self,
address: &'life1 AccountId,
) -> Pin<Box<dyn Future<Output = Result<Vec<ContractCodeHistoryEntry>, NyxdError>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn query_all_contract_state<'life0, 'life1, 'async_trait>(
&'life0 self,
address: &'life1 AccountId,
) -> Pin<Box<dyn Future<Output = Result<Vec<Model>, NyxdError>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn query_contract_raw<'life0, 'life1, 'async_trait>(
&'life0 self,
address: &'life1 AccountId,
query_data: Vec<u8>,
) -> Pin<Box<dyn Future<Output = Result<Vec<u8>, NyxdError>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn query_contract_smart<'life0, 'life1, 'life2, 'async_trait, M, T>(
&'life0 self,
address: &'life1 AccountId,
query_msg: &'life2 M,
) -> Pin<Box<dyn Future<Output = Result<T, NyxdError>> + Send + 'async_trait>>where
M: ?Sized + Serialize + Sync + 'async_trait,
for<'a> T: Deserialize<'a> + 'async_trait,
Self: Sync + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn query_simulate<'life0, 'async_trait>(
&'life0 self,
tx_bytes: Vec<u8>,
) -> Pin<Box<dyn Future<Output = Result<SimulateResponse, NyxdError>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
Source§impl<T> Declassify for T
impl<T> Declassify for T
type Declassified = T
fn declassify(self) -> T
Source§impl<T> Deprecatable for T
impl<T> Deprecatable for T
fn deprecate(self) -> Deprecated<Self>where
Self: Sized,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> OptionalSet for T
impl<T> OptionalSet for T
Source§fn with_optional<F, T>(self, f: F, val: Option<T>) -> Self
fn with_optional<F, T>(self, f: F, val: Option<T>) -> Self
Some), the provided closure is applied.
Otherwise self is returned with no modifications.Source§fn with_validated_optional<F, T, V, E>(
self,
f: F,
value: Option<T>,
validate: V,
) -> Result<Self, E>
fn with_validated_optional<F, T, V, E>( self, f: F, value: Option<T>, validate: V, ) -> Result<Self, E>
Some) it is validated and then the provided closure is applied.
Otherwise self is returned with no modifications.Source§fn with_optional_env<F, T>(self, f: F, val: Option<T>, env_var: &str) -> Self
fn with_optional_env<F, T>(self, f: F, val: Option<T>, env_var: &str) -> Self
Some), the provided closure is applied.
Otherwise, if the environment was configured and the corresponding variable was set,
the value is parsed using the FromStr implementation and the closure is applied on that instead.
Finally, if none of those were available, self is returned with no modifications.Source§fn with_optional_custom_env<F, T, G>(
self,
f: F,
val: Option<T>,
env_var: &str,
parser: G,
) -> Self
fn with_optional_custom_env<F, T, G>( self, f: F, val: Option<T>, env_var: &str, parser: G, ) -> Self
Some), the provided closure is applied.
Otherwise, if the environment was configured and the corresponding variable was set,
the value is parsed using the provided parser and the closure is applied on that instead.
Finally, if none of those were available, self is returned with no modifications.Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<T> StakingQueryClient for Twhere
T: CosmWasmClient,
impl<T> StakingQueryClient for Twhere
T: CosmWasmClient,
fn historical_info<'life0, 'async_trait>(
&'life0 self,
height: i64,
) -> Pin<Box<dyn Future<Output = Result<QueryHistoricalInfoResponse, NyxdError>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
fn validator<'life0, 'async_trait>(
&'life0 self,
validator_addr: AccountId,
) -> Pin<Box<dyn Future<Output = Result<QueryValidatorResponse, NyxdError>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
fn validators<'life0, 'async_trait>(
&'life0 self,
status: String,
pagination: Option<PageRequest>,
) -> Pin<Box<dyn Future<Output = Result<QueryValidatorsResponse, NyxdError>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
Source§impl<C> TendermintRpcClient for C
impl<C> TendermintRpcClient for C
Source§fn abci_info<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Info, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
C: 'async_trait,
fn abci_info<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Info, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
C: 'async_trait,
/abci_info: get information about the ABCI application.Source§fn abci_query<'life0, 'async_trait, V>(
&'life0 self,
path: Option<String>,
data: V,
height: Option<Height>,
prove: bool,
) -> Pin<Box<dyn Future<Output = Result<AbciQuery, Error>> + Send + 'async_trait>>
fn abci_query<'life0, 'async_trait, V>( &'life0 self, path: Option<String>, data: V, height: Option<Height>, prove: bool, ) -> Pin<Box<dyn Future<Output = Result<AbciQuery, Error>> + Send + 'async_trait>>
/abci_query: query the ABCI applicationSource§fn block<'life0, 'async_trait, H>(
&'life0 self,
height: H,
) -> Pin<Box<dyn Future<Output = Result<Response, Error>> + Send + 'async_trait>>
fn block<'life0, 'async_trait, H>( &'life0 self, height: H, ) -> Pin<Box<dyn Future<Output = Result<Response, Error>> + Send + 'async_trait>>
/block: get block at a given height.Source§fn block_by_hash<'life0, 'async_trait>(
&'life0 self,
hash: Hash,
) -> Pin<Box<dyn Future<Output = Result<Response, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
C: 'async_trait,
fn block_by_hash<'life0, 'async_trait>(
&'life0 self,
hash: Hash,
) -> Pin<Box<dyn Future<Output = Result<Response, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
C: 'async_trait,
/block_by_hash: get block by hash.Source§fn latest_block<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Response, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
C: 'async_trait,
fn latest_block<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Response, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
C: 'async_trait,
/block: get the latest block.Source§fn header<'life0, 'async_trait, H>(
&'life0 self,
height: H,
) -> Pin<Box<dyn Future<Output = Result<Response, Error>> + Send + 'async_trait>>
fn header<'life0, 'async_trait, H>( &'life0 self, height: H, ) -> Pin<Box<dyn Future<Output = Result<Response, Error>> + Send + 'async_trait>>
/header: get block header at a given height.Source§fn header_by_hash<'life0, 'async_trait>(
&'life0 self,
hash: Hash,
) -> Pin<Box<dyn Future<Output = Result<Response, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
C: 'async_trait,
fn header_by_hash<'life0, 'async_trait>(
&'life0 self,
hash: Hash,
) -> Pin<Box<dyn Future<Output = Result<Response, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
C: 'async_trait,
/header_by_hash: get block by hash.Source§fn block_results<'life0, 'async_trait, H>(
&'life0 self,
height: H,
) -> Pin<Box<dyn Future<Output = Result<Response, Error>> + Send + 'async_trait>>
fn block_results<'life0, 'async_trait, H>( &'life0 self, height: H, ) -> Pin<Box<dyn Future<Output = Result<Response, Error>> + Send + 'async_trait>>
/block_results: get ABCI results for a block at a particular height.Source§fn latest_block_results<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Response, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
C: 'async_trait,
fn latest_block_results<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Response, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
C: 'async_trait,
/block_results: get ABCI results for the latest block.Source§fn block_search<'life0, 'async_trait>(
&'life0 self,
query: Query,
page: u32,
per_page: u8,
order: Order,
) -> Pin<Box<dyn Future<Output = Result<Response, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
C: 'async_trait,
fn block_search<'life0, 'async_trait>(
&'life0 self,
query: Query,
page: u32,
per_page: u8,
order: Order,
) -> Pin<Box<dyn Future<Output = Result<Response, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
C: 'async_trait,
/block_search: search for blocks by BeginBlock and EndBlock events.Source§fn blockchain<'life0, 'async_trait, H>(
&'life0 self,
min: H,
max: H,
) -> Pin<Box<dyn Future<Output = Result<Response, Error>> + Send + 'async_trait>>
fn blockchain<'life0, 'async_trait, H>( &'life0 self, min: H, max: H, ) -> Pin<Box<dyn Future<Output = Result<Response, Error>> + Send + 'async_trait>>
Source§fn broadcast_tx_async<'life0, 'async_trait, T>(
&'life0 self,
tx: T,
) -> Pin<Box<dyn Future<Output = Result<Response, Error>> + Send + 'async_trait>>
fn broadcast_tx_async<'life0, 'async_trait, T>( &'life0 self, tx: T, ) -> Pin<Box<dyn Future<Output = Result<Response, Error>> + Send + 'async_trait>>
/broadcast_tx_async: broadcast a transaction, returning immediately.Source§fn broadcast_tx_sync<'life0, 'async_trait, T>(
&'life0 self,
tx: T,
) -> Pin<Box<dyn Future<Output = Result<Response, Error>> + Send + 'async_trait>>
fn broadcast_tx_sync<'life0, 'async_trait, T>( &'life0 self, tx: T, ) -> Pin<Box<dyn Future<Output = Result<Response, Error>> + Send + 'async_trait>>
/broadcast_tx_sync: broadcast a transaction, returning the response
from CheckTx.Source§fn broadcast_tx_commit<'life0, 'async_trait, T>(
&'life0 self,
tx: T,
) -> Pin<Box<dyn Future<Output = Result<Response, Error>> + Send + 'async_trait>>
fn broadcast_tx_commit<'life0, 'async_trait, T>( &'life0 self, tx: T, ) -> Pin<Box<dyn Future<Output = Result<Response, Error>> + Send + 'async_trait>>
/broadcast_tx_commit: broadcast a transaction, returning the response
from DeliverTx.Source§fn commit<'life0, 'async_trait, H>(
&'life0 self,
height: H,
) -> Pin<Box<dyn Future<Output = Result<Response, Error>> + Send + 'async_trait>>
fn commit<'life0, 'async_trait, H>( &'life0 self, height: H, ) -> Pin<Box<dyn Future<Output = Result<Response, Error>> + Send + 'async_trait>>
/commit: get block commit at a given height.Source§fn consensus_params<'life0, 'async_trait, H>(
&'life0 self,
height: H,
) -> Pin<Box<dyn Future<Output = Result<Response, Error>> + Send + 'async_trait>>
fn consensus_params<'life0, 'async_trait, H>( &'life0 self, height: H, ) -> Pin<Box<dyn Future<Output = Result<Response, Error>> + Send + 'async_trait>>
/consensus_params: get current consensus parameters at the specified
height.Source§fn consensus_state<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Response, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
C: 'async_trait,
fn consensus_state<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Response, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
C: 'async_trait,
/consensus_state: get current consensus stateSource§fn validators<'life0, 'async_trait, H>(
&'life0 self,
height: H,
paging: Paging,
) -> Pin<Box<dyn Future<Output = Result<Response, Error>> + Send + 'async_trait>>
fn validators<'life0, 'async_trait, H>( &'life0 self, height: H, paging: Paging, ) -> Pin<Box<dyn Future<Output = Result<Response, Error>> + Send + 'async_trait>>
/validators: get validators a given height.Source§fn latest_consensus_params<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Response, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
C: 'async_trait,
fn latest_consensus_params<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Response, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
C: 'async_trait,
/consensus_params: get the latest consensus parameters.Source§fn latest_commit<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Response, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
C: 'async_trait,
fn latest_commit<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Response, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
C: 'async_trait,
/commit: get the latest block commitSource§fn health<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
C: 'async_trait,
fn health<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
C: 'async_trait,
/health: get node health. Read moreSource§fn genesis<'life0, 'async_trait, AppState>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Genesis<AppState>, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
AppState: Debug + Serialize + DeserializeOwned + Send + 'async_trait,
C: 'async_trait,
fn genesis<'life0, 'async_trait, AppState>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Genesis<AppState>, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
AppState: Debug + Serialize + DeserializeOwned + Send + 'async_trait,
C: 'async_trait,
/genesis: get genesis file.Source§fn net_info<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Response, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
C: 'async_trait,
fn net_info<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Response, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
C: 'async_trait,
/net_info: obtain information about P2P and other network connections.Source§fn status<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Response, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
C: 'async_trait,
fn status<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Response, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
C: 'async_trait,
/status: get Tendermint status including node info, pubkey, latest
block hash, app hash, block height and time.Source§fn broadcast_evidence<'life0, 'async_trait>(
&'life0 self,
e: Evidence,
) -> Pin<Box<dyn Future<Output = Result<Response, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
C: 'async_trait,
fn broadcast_evidence<'life0, 'async_trait>(
&'life0 self,
e: Evidence,
) -> Pin<Box<dyn Future<Output = Result<Response, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
C: 'async_trait,
/broadcast_evidence: broadcast an evidence.Source§fn tx<'life0, 'async_trait>(
&'life0 self,
hash: Hash,
prove: bool,
) -> Pin<Box<dyn Future<Output = Result<Response, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
C: 'async_trait,
fn tx<'life0, 'async_trait>(
&'life0 self,
hash: Hash,
prove: bool,
) -> Pin<Box<dyn Future<Output = Result<Response, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
C: 'async_trait,
/tx: find transaction by hash.Source§fn tx_search<'life0, 'async_trait>(
&'life0 self,
query: Query,
prove: bool,
page: u32,
per_page: u8,
order: Order,
) -> Pin<Box<dyn Future<Output = Result<Response, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
C: 'async_trait,
fn tx_search<'life0, 'async_trait>(
&'life0 self,
query: Query,
prove: bool,
page: u32,
per_page: u8,
order: Order,
) -> Pin<Box<dyn Future<Output = Result<Response, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
C: 'async_trait,
/tx_search: search for transactions with their results.