openzeppelin_relayer::domain

Function get_transaction_by_id

Source
pub async fn get_transaction_by_id(
    transaction_id: String,
    state: &ThinData<AppState<JobProducer>>,
) -> Result<TransactionRepoModel, ApiError>
Expand description

Retrieves a transaction by its ID.

§Arguments

  • transaction_id - A String representing the ID of the transaction to retrieve.
  • state - A reference to the application state, wrapped in ThinData.

§Returns

A Result containing a TransactionRepoModel if successful, or an ApiError if an error occurs.