pub struct Wall {
pub urls: Vec<String>,
pub retry: u32,
pub id: String,
}Fields§
§urls: Vec<String>RPC Server URLs
retry: u32Re-try quest
id: StringChainId
Implementations§
Source§impl Wall
impl Wall
pub fn new(urls: Vec<String>, retry: Option<u32>, id: Option<String>) -> Self
pub async fn get_latest_number(&self) -> Option<JsonRpc>
pub async fn get_transactions_for_block( &self, number: &str, is_show: bool, ) -> Option<JsonRpc>
pub async fn get_transaction_receipt_for_hash( &self, hash: &str, ) -> Option<JsonRpc>
pub async fn get_logs( &self, from_block: Option<String>, to_block: Option<String>, address: Option<Vec<String>>, topics: Option<Vec<String>>, ) -> Option<JsonRpc>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Wall
impl RefUnwindSafe for Wall
impl Send for Wall
impl Sync for Wall
impl Unpin for Wall
impl UnwindSafe for Wall
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
Mutably borrows from an owned value. Read more