Function get_network_relayer

Source
pub async fn get_network_relayer<J, RR, TR, NR, NFR, SR, TCR, PR>(
    relayer_id: String,
    state: &ThinDataAppState<J, RR, TR, NR, NFR, SR, TCR, PR>,
) -> Result<NetworkRelayer<J, TR, RR, NR, TCR>, 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 a NetworkRelayer on success, or an ApiError on failure.