Function get_transaction_by_nonce
Source pub async fn get_transaction_by_nonce<J, RR, TR, NR, NFR, SR, TCR, PR>(
relayer_id: String,
nonce: u64,
state: ThinDataAppState<J, RR, TR, NR, NFR, SR, TCR, PR>,
) -> Result<HttpResponse, ApiError>where
J:
JobProducerTrait +
Send +
Sync + 'static,
RR:
RelayerRepository +
Repository<
RelayerRepoModel,
String> +
Send +
Sync + 'static,
TR:
TransactionRepository +
Repository<
TransactionRepoModel,
String> +
Send +
Sync + 'static,
NR:
NetworkRepository +
Repository<
NetworkRepoModel,
String> +
Send +
Sync + 'static,
NFR:
Repository<
NotificationRepoModel,
String> +
Send +
Sync + 'static,
SR:
Repository<
SignerRepoModel,
String> +
Send +
Sync + 'static,
TCR:
TransactionCounterTrait +
Send +
Sync + 'static,
PR:
PluginRepositoryTrait +
Send +
Sync + 'static,
Expand description
Retrieves a transaction by its nonce for a specific relayer.
§Arguments
relayer_id
- The ID of the relayer.
nonce
- The nonce of the transaction to retrieve.
state
- The application state containing the transaction repository.
§Returns
The details of the specified transaction.