pub async fn get_network_relayer(
relayer_id: String,
state: &ThinData<AppState<JobProducer>>,
) -> Result<NetworkRelayer, ApiError>
Expand description
Retrieves a network relayer by its ID, constructing it using the relayer and signer models.
§Arguments
relayer_id
- A string slice that holds the ID of the relayer.state
- A reference to the application state.
§Returns
Result<NetworkRelayer, ApiError>
- Returns aNetworkRelayer
on success, or anApiError
on failure.