pub async fn get_relayer_transaction(
relayer_id: String,
state: &ThinData<AppState<JobProducer>>,
) -> Result<NetworkTransaction, ApiError>
Expand description
Creates a relayer network transaction instance based on the relayer ID.
§Arguments
relayer_id
- AString
representing the ID of the relayer.state
- A reference to the application state, wrapped inThinData
.
§Returns
A Result
containing a NetworkTransaction
if successful, or an ApiError
if an error occurs.