pub struct RpcClient { /* private fields */ }Expand description
A minimal blocking JSON-RPC client for the debug tracing endpoints.
Implementations§
Source§impl RpcClient
impl RpcClient
pub fn builder(url: &str) -> RpcClientBuilder
pub fn call(&self, method: &str, params: Value) -> Result<Value, RpcError>
pub fn trace_transaction( &self, hash: &B256, opts: TracerOptions, ) -> Result<TxTrace, RpcError>
Sourcepub fn trace_range(
&self,
from: u64,
to: u64,
opts: TracerOptions,
) -> Result<Vec<TxTrace>, RpcError>
pub fn trace_range( &self, from: u64, to: u64, opts: TracerOptions, ) -> Result<Vec<TxTrace>, RpcError>
Traces every block in from..=to, in order, as one list of
transactions. Compose them for the net change over the range.
pub fn trace_block( &self, block: &BlockId, opts: TracerOptions, ) -> Result<Vec<TxTrace>, RpcError>
Auto Trait Implementations§
impl !Freeze for RpcClient
impl !RefUnwindSafe for RpcClient
impl !UnwindSafe for RpcClient
impl Send for RpcClient
impl Sync for RpcClient
impl Unpin for RpcClient
impl UnsafeUnpin for RpcClient
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