Struct fathom_web3::api::Traces
source · [−]pub struct Traces<T> { /* private fields */ }
Expand description
Trace
namespace
Implementations
sourceimpl<T: Transport> Traces<T>
impl<T: Transport> Traces<T>
sourcepub fn call(
&self,
req: CallRequest,
trace_type: Vec<TraceType>,
block: Option<BlockNumber>
) -> CallFuture<BlockTrace, T::Out>ⓘNotable traits for CallFuture<T, F>impl<T, F> Future for CallFuture<T, F>where
T: DeserializeOwned,
F: Future<Output = Result<Value>>, type Output = Result<T>;
pub fn call(
&self,
req: CallRequest,
trace_type: Vec<TraceType>,
block: Option<BlockNumber>
) -> CallFuture<BlockTrace, T::Out>ⓘNotable traits for CallFuture<T, F>impl<T, F> Future for CallFuture<T, F>where
T: DeserializeOwned,
F: Future<Output = Result<Value>>, type Output = Result<T>;
T: DeserializeOwned,
F: Future<Output = Result<Value>>, type Output = Result<T>;
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>
) -> CallFuture<Vec<BlockTrace>, T::Out>ⓘNotable traits for CallFuture<T, F>impl<T, F> Future for CallFuture<T, F>where
T: DeserializeOwned,
F: Future<Output = Result<Value>>, type Output = Result<T>;
pub fn call_many(
&self,
reqs_with_trace_types: Vec<(CallRequest, Vec<TraceType>)>,
block: Option<BlockId>
) -> CallFuture<Vec<BlockTrace>, T::Out>ⓘNotable traits for CallFuture<T, F>impl<T, F> Future for CallFuture<T, F>where
T: DeserializeOwned,
F: Future<Output = Result<Value>>, type Output = Result<T>;
T: DeserializeOwned,
F: Future<Output = Result<Value>>, type Output = Result<T>;
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>
) -> CallFuture<BlockTrace, T::Out>ⓘNotable traits for CallFuture<T, F>impl<T, F> Future for CallFuture<T, F>where
T: DeserializeOwned,
F: Future<Output = Result<Value>>, type Output = Result<T>;
pub fn raw_transaction(
&self,
data: Bytes,
trace_type: Vec<TraceType>
) -> CallFuture<BlockTrace, T::Out>ⓘNotable traits for CallFuture<T, F>impl<T, F> Future for CallFuture<T, F>where
T: DeserializeOwned,
F: Future<Output = Result<Value>>, type Output = Result<T>;
T: DeserializeOwned,
F: Future<Output = Result<Value>>, type Output = Result<T>;
Traces a call to eth_sendRawTransaction
without making the call, returning the traces
sourcepub fn replay_transaction(
&self,
hash: H256,
trace_type: Vec<TraceType>
) -> CallFuture<BlockTrace, T::Out>ⓘNotable traits for CallFuture<T, F>impl<T, F> Future for CallFuture<T, F>where
T: DeserializeOwned,
F: Future<Output = Result<Value>>, type Output = Result<T>;
pub fn replay_transaction(
&self,
hash: H256,
trace_type: Vec<TraceType>
) -> CallFuture<BlockTrace, T::Out>ⓘNotable traits for CallFuture<T, F>impl<T, F> Future for CallFuture<T, F>where
T: DeserializeOwned,
F: Future<Output = Result<Value>>, type Output = Result<T>;
T: DeserializeOwned,
F: Future<Output = Result<Value>>, type Output = Result<T>;
Replays a transaction, returning the traces
sourcepub fn replay_block_transactions(
&self,
block: BlockNumber,
trace_type: Vec<TraceType>
) -> CallFuture<Vec<BlockTrace>, T::Out>ⓘNotable traits for CallFuture<T, F>impl<T, F> Future for CallFuture<T, F>where
T: DeserializeOwned,
F: Future<Output = Result<Value>>, type Output = Result<T>;
pub fn replay_block_transactions(
&self,
block: BlockNumber,
trace_type: Vec<TraceType>
) -> CallFuture<Vec<BlockTrace>, T::Out>ⓘNotable traits for CallFuture<T, F>impl<T, F> Future for CallFuture<T, F>where
T: DeserializeOwned,
F: Future<Output = Result<Value>>, type Output = Result<T>;
T: DeserializeOwned,
F: Future<Output = Result<Value>>, type Output = Result<T>;
Replays all transactions in a block returning the requested traces for each transaction
sourcepub fn block(&self, block: BlockNumber) -> CallFuture<Vec<Trace>, T::Out>ⓘNotable traits for CallFuture<T, F>impl<T, F> Future for CallFuture<T, F>where
T: DeserializeOwned,
F: Future<Output = Result<Value>>, type Output = Result<T>;
pub fn block(&self, block: BlockNumber) -> CallFuture<Vec<Trace>, T::Out>ⓘNotable traits for CallFuture<T, F>impl<T, F> Future for CallFuture<T, F>where
T: DeserializeOwned,
F: Future<Output = Result<Value>>, type Output = Result<T>;
T: DeserializeOwned,
F: Future<Output = Result<Value>>, type Output = Result<T>;
Returns traces created at given block
sourcepub fn filter(&self, filter: TraceFilter) -> CallFuture<Vec<Trace>, T::Out>ⓘNotable traits for CallFuture<T, F>impl<T, F> Future for CallFuture<T, F>where
T: DeserializeOwned,
F: Future<Output = Result<Value>>, type Output = Result<T>;
pub fn filter(&self, filter: TraceFilter) -> CallFuture<Vec<Trace>, T::Out>ⓘNotable traits for CallFuture<T, F>impl<T, F> Future for CallFuture<T, F>where
T: DeserializeOwned,
F: Future<Output = Result<Value>>, type Output = Result<T>;
T: DeserializeOwned,
F: Future<Output = Result<Value>>, type Output = Result<T>;
Return traces matching the given filter
sourcepub fn get(&self, hash: H256, index: Vec<Index>) -> CallFuture<Trace, T::Out>ⓘNotable traits for CallFuture<T, F>impl<T, F> Future for CallFuture<T, F>where
T: DeserializeOwned,
F: Future<Output = Result<Value>>, type Output = Result<T>;
pub fn get(&self, hash: H256, index: Vec<Index>) -> CallFuture<Trace, T::Out>ⓘNotable traits for CallFuture<T, F>impl<T, F> Future for CallFuture<T, F>where
T: DeserializeOwned,
F: Future<Output = Result<Value>>, type Output = Result<T>;
T: DeserializeOwned,
F: Future<Output = Result<Value>>, type Output = Result<T>;
Returns trace at the given position
sourcepub fn transaction(&self, hash: H256) -> CallFuture<Vec<Trace>, T::Out>ⓘNotable traits for CallFuture<T, F>impl<T, F> Future for CallFuture<T, F>where
T: DeserializeOwned,
F: Future<Output = Result<Value>>, type Output = Result<T>;
pub fn transaction(&self, hash: H256) -> CallFuture<Vec<Trace>, T::Out>ⓘNotable traits for CallFuture<T, F>impl<T, F> Future for CallFuture<T, F>where
T: DeserializeOwned,
F: Future<Output = Result<Value>>, type Output = Result<T>;
T: DeserializeOwned,
F: Future<Output = Result<Value>>, type Output = Result<T>;
Returns all traces of a given transaction
Trait Implementations
Auto Trait Implementations
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more