pub async fn get_network_relayer<P: JobProducerTrait + 'static>(
relayer_id: String,
state: &ThinData<AppState<P>>,
) -> Result<NetworkRelayer<P>, 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 aNetworkRelayeron success, or anApiErroron failure.