Struct diem_json_rpc_client::BroadcastingClient
source · pub struct BroadcastingClient { /* private fields */ }
Implementations§
source§impl BroadcastingClient
impl BroadcastingClient
pub fn new( clients: Vec<Client>, num_parallel_requests: usize ) -> Result<Self, String>
pub async fn batch( &self, requests: Vec<MethodRequest> ) -> Result<Vec<Result<Response<MethodResponse>>>>
pub async fn submit(&self, txn: &SignedTransaction) -> Result<Response<()>>
pub async fn get_metadata_by_version( &self, version: u64 ) -> Result<Response<MetadataView>>
pub async fn get_account( &self, address: AccountAddress ) -> Result<Response<Option<AccountView>>>
pub async fn get_transactions( &self, start_seq: u64, limit: u64, include_events: bool ) -> Result<Response<Vec<TransactionView>>>
pub async fn get_account_transaction( &self, address: AccountAddress, seq: u64, include_events: bool ) -> Result<Response<Option<TransactionView>>>
pub async fn get_account_transactions( &self, address: AccountAddress, start_seq: u64, limit: u64, include_events: bool ) -> Result<Response<Vec<TransactionView>>>
pub async fn get_events( &self, key: EventKey, start_seq: u64, limit: u64 ) -> Result<Response<Vec<EventView>>>
pub async fn get_currencies(&self) -> Result<Response<Vec<CurrencyInfoView>>>
pub async fn get_network_status(&self) -> Result<Response<u64>>
pub async fn get_state_proof( &self, from_version: u64 ) -> Result<Response<StateProofView>>
pub async fn get_account_state_with_proof( &self, address: AccountAddress, from_version: Option<u64>, to_version: Option<u64> ) -> Result<Response<AccountStateWithProofView>>
pub async fn get_transactions_with_proofs( &self, start_version: u64, limit: u64, include_events: bool ) -> Result<Response<Option<TransactionsWithProofsView>>>
pub async fn get_events_with_proofs( &self, key: EventKey, start_seq: u64, limit: u64 ) -> Result<Response<Vec<EventWithProofView>>>
Trait Implementations§
source§impl Clone for BroadcastingClient
impl Clone for BroadcastingClient
source§fn clone(&self) -> BroadcastingClient
fn clone(&self) -> BroadcastingClient
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more