pub struct Explorer<'a> { /* private fields */ }Expand description
explorer namespace handle. Constructed via RestClient::explorer.
Implementations§
Source§impl<'a> Explorer<'a>
impl<'a> Explorer<'a>
Sourcepub async fn block_by_height(&self, height: u64) -> Result<Block, ClientError>
pub async fn block_by_height(&self, height: u64) -> Result<Block, ClientError>
Sourcepub async fn tx_by_hash(&self, hash: &str) -> Result<Transaction, ClientError>
pub async fn tx_by_hash(&self, hash: &str) -> Result<Transaction, ClientError>
Look up a transaction by 32-byte hash (0x-prefixed lowercase hex).
§Errors
HTTP / decode / protocol errors per crate::ClientError.
Trait Implementations§
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for Explorer<'a>
impl<'a> !UnwindSafe for Explorer<'a>
impl<'a> Freeze for Explorer<'a>
impl<'a> Send for Explorer<'a>
impl<'a> Sync for Explorer<'a>
impl<'a> Unpin for Explorer<'a>
impl<'a> UnsafeUnpin for Explorer<'a>
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