pub trait EthTransactionApiClient: ClientT {
// Provided methods
fn transaction_by_hash<'life0, 'async_trait>(
&'life0 self,
transaction_hash: H256,
) -> Pin<Box<dyn Future<Output = Result<Option<Transaction>, Error>> + Send + 'async_trait>>
where Self: Sync + 'async_trait,
'life0: 'async_trait { ... }
fn transaction_by_block_hash_and_index<'life0, 'async_trait>(
&'life0 self,
block_hash: H256,
transaction_index: Index,
) -> Pin<Box<dyn Future<Output = Result<Option<Transaction>, Error>> + Send + 'async_trait>>
where Self: Sync + 'async_trait,
'life0: 'async_trait { ... }
fn transaction_by_block_number_and_index<'life0, 'async_trait>(
&'life0 self,
block: BlockNumberOrTag,
transaction_index: Index,
) -> Pin<Box<dyn Future<Output = Result<Option<Transaction>, Error>> + Send + 'async_trait>>
where Self: Sync + 'async_trait,
'life0: 'async_trait { ... }
fn transaction_receipt<'life0, 'async_trait>(
&'life0 self,
transaction_hash: H256,
) -> Pin<Box<dyn Future<Output = Result<Option<TransactionReceipt>, Error>> + Send + 'async_trait>>
where Self: Sync + 'async_trait,
'life0: 'async_trait { ... }
}
Expand description
Client implementation for the EthTransactionApi
RPC API.
Provided Methods§
Sourcefn transaction_by_hash<'life0, 'async_trait>(
&'life0 self,
transaction_hash: H256,
) -> Pin<Box<dyn Future<Output = Result<Option<Transaction>, Error>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
fn transaction_by_hash<'life0, 'async_trait>(
&'life0 self,
transaction_hash: H256,
) -> Pin<Box<dyn Future<Output = Result<Option<Transaction>, Error>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
Returns the information about a transaction requested by transaction hash.
Sourcefn transaction_by_block_hash_and_index<'life0, 'async_trait>(
&'life0 self,
block_hash: H256,
transaction_index: Index,
) -> Pin<Box<dyn Future<Output = Result<Option<Transaction>, Error>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
fn transaction_by_block_hash_and_index<'life0, 'async_trait>(
&'life0 self,
block_hash: H256,
transaction_index: Index,
) -> Pin<Box<dyn Future<Output = Result<Option<Transaction>, Error>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
Returns information about a transaction by block hash and transaction index position.
Sourcefn transaction_by_block_number_and_index<'life0, 'async_trait>(
&'life0 self,
block: BlockNumberOrTag,
transaction_index: Index,
) -> Pin<Box<dyn Future<Output = Result<Option<Transaction>, Error>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
fn transaction_by_block_number_and_index<'life0, 'async_trait>(
&'life0 self,
block: BlockNumberOrTag,
transaction_index: Index,
) -> Pin<Box<dyn Future<Output = Result<Option<Transaction>, Error>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
Returns information about a transaction by block number and transaction index position.
Sourcefn transaction_receipt<'life0, 'async_trait>(
&'life0 self,
transaction_hash: H256,
) -> Pin<Box<dyn Future<Output = Result<Option<TransactionReceipt>, Error>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
fn transaction_receipt<'life0, 'async_trait>(
&'life0 self,
transaction_hash: H256,
) -> Pin<Box<dyn Future<Output = Result<Option<TransactionReceipt>, Error>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
Returns the receipt of a transaction by transaction hash.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.