pub struct Traces<T> { /* private fields */ }
Expand description
Trace
namespace
Implementations§
Source§impl<T: Transport> Traces<T>
impl<T: Transport> Traces<T>
Sourcepub fn call(
&self,
req: CallRequest,
trace_type: Vec<TraceType>,
block: Option<BlockNumber>,
options: CallOptions,
) -> CallFuture<BlockTrace, T::Out> ⓘ
pub fn call( &self, req: CallRequest, trace_type: Vec<TraceType>, block: Option<BlockNumber>, options: CallOptions, ) -> CallFuture<BlockTrace, T::Out> ⓘ
Executes the given call and returns a number of possible traces for it
Sourcepub fn call_many(
&self,
reqs_with_trace_types: Vec<(CallRequest, Vec<TraceType>)>,
block: Option<BlockId>,
options: CallOptions,
) -> CallFuture<Vec<BlockTrace>, T::Out> ⓘ
pub fn call_many( &self, reqs_with_trace_types: Vec<(CallRequest, Vec<TraceType>)>, block: Option<BlockId>, options: CallOptions, ) -> CallFuture<Vec<BlockTrace>, T::Out> ⓘ
Performs multiple call traces on top of the same block. Allows to trace dependent transactions.
Sourcepub fn raw_transaction(
&self,
data: Bytes,
trace_type: Vec<TraceType>,
options: CallOptions,
) -> CallFuture<BlockTrace, T::Out> ⓘ
pub fn raw_transaction( &self, data: Bytes, trace_type: Vec<TraceType>, options: CallOptions, ) -> CallFuture<BlockTrace, T::Out> ⓘ
Traces a call to eth_sendRawTransaction
without making the call, returning the traces
Sourcepub fn replay_transaction(
&self,
hash: H256,
trace_type: Vec<TraceType>,
options: CallOptions,
) -> CallFuture<BlockTrace, T::Out> ⓘ
pub fn replay_transaction( &self, hash: H256, trace_type: Vec<TraceType>, options: CallOptions, ) -> CallFuture<BlockTrace, T::Out> ⓘ
Replays a transaction, returning the traces
Sourcepub fn replay_block_transactions(
&self,
block: BlockNumber,
trace_type: Vec<TraceType>,
options: CallOptions,
) -> CallFuture<Vec<BlockTrace>, T::Out> ⓘ
pub fn replay_block_transactions( &self, block: BlockNumber, trace_type: Vec<TraceType>, options: CallOptions, ) -> CallFuture<Vec<BlockTrace>, T::Out> ⓘ
Replays all transactions in a block returning the requested traces for each transaction
Sourcepub fn block(
&self,
block: BlockNumber,
options: CallOptions,
) -> CallFuture<Vec<Trace>, T::Out> ⓘ
pub fn block( &self, block: BlockNumber, options: CallOptions, ) -> CallFuture<Vec<Trace>, T::Out> ⓘ
Returns traces created at given block
Sourcepub fn filter(
&self,
filter: TraceFilter,
options: CallOptions,
) -> CallFuture<Vec<Trace>, T::Out> ⓘ
pub fn filter( &self, filter: TraceFilter, options: CallOptions, ) -> CallFuture<Vec<Trace>, T::Out> ⓘ
Return traces matching the given filter
Sourcepub fn get(
&self,
hash: H256,
index: Vec<Index>,
options: CallOptions,
) -> CallFuture<Trace, T::Out> ⓘ
pub fn get( &self, hash: H256, index: Vec<Index>, options: CallOptions, ) -> CallFuture<Trace, T::Out> ⓘ
Returns trace at the given position
Sourcepub fn transaction(
&self,
hash: H256,
options: CallOptions,
) -> CallFuture<Vec<Trace>, T::Out> ⓘ
pub fn transaction( &self, hash: H256, options: CallOptions, ) -> CallFuture<Vec<Trace>, T::Out> ⓘ
Returns all traces of a given transaction
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for Traces<T>where
T: Freeze,
impl<T> RefUnwindSafe for Traces<T>where
T: RefUnwindSafe,
impl<T> Send for Traces<T>where
T: Send,
impl<T> Sync for Traces<T>where
T: Sync,
impl<T> Unpin for Traces<T>where
T: Unpin,
impl<T> UnwindSafe for Traces<T>where
T: UnwindSafe,
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