Trait TransactionsApi
Source pub trait TransactionsApi: Send + Sync {
// Required methods
fn cancel_transaction<'life0, 'async_trait>(
&'life0 self,
params: CancelTransactionParams,
) -> Pin<Box<dyn Future<Output = Result<CancelTransactionResponse, Error<CancelTransactionError>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn create_transaction<'life0, 'async_trait>(
&'life0 self,
params: CreateTransactionParams,
) -> Pin<Box<dyn Future<Output = Result<CreateTransactionResponse, Error<CreateTransactionError>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn drop_transaction<'life0, 'async_trait>(
&'life0 self,
params: DropTransactionParams,
) -> Pin<Box<dyn Future<Output = Result<DropTransactionResponse, Error<DropTransactionError>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn estimate_transaction_fee<'life0, 'async_trait>(
&'life0 self,
params: EstimateTransactionFeeParams,
) -> Pin<Box<dyn Future<Output = Result<EstimatedTransactionFeeResponse, Error<EstimateTransactionFeeError>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn freeze_transaction<'life0, 'async_trait>(
&'life0 self,
params: FreezeTransactionParams,
) -> Pin<Box<dyn Future<Output = Result<FreezeTransactionResponse, Error<FreezeTransactionError>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_transaction<'life0, 'async_trait>(
&'life0 self,
params: GetTransactionParams,
) -> Pin<Box<dyn Future<Output = Result<TransactionResponse, Error<GetTransactionError>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_transaction_by_external_id<'life0, 'async_trait>(
&'life0 self,
params: GetTransactionByExternalIdParams,
) -> Pin<Box<dyn Future<Output = Result<TransactionResponse, Error<GetTransactionByExternalIdError>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_transactions<'life0, 'async_trait>(
&'life0 self,
params: GetTransactionsParams,
) -> Pin<Box<dyn Future<Output = Result<Vec<TransactionResponse>, Error<GetTransactionsError>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn rescan_transactions_beta<'life0, 'async_trait>(
&'life0 self,
params: RescanTransactionsBetaParams,
) -> Pin<Box<dyn Future<Output = Result<Vec<ValidatedTransactionsForRescan>, Error<RescanTransactionsBetaError>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn set_confirmation_threshold_by_transaction_hash<'life0, 'async_trait>(
&'life0 self,
params: SetConfirmationThresholdByTransactionHashParams,
) -> Pin<Box<dyn Future<Output = Result<SetConfirmationsThresholdResponse, Error<SetConfirmationThresholdByTransactionHashError>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn set_transaction_confirmation_threshold<'life0, 'async_trait>(
&'life0 self,
params: SetTransactionConfirmationThresholdParams,
) -> Pin<Box<dyn Future<Output = Result<SetConfirmationsThresholdResponse, Error<SetTransactionConfirmationThresholdError>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn unfreeze_transaction<'life0, 'async_trait>(
&'life0 self,
params: UnfreezeTransactionParams,
) -> Pin<Box<dyn Future<Output = Result<UnfreezeTransactionResponse, Error<UnfreezeTransactionError>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}