Function get_network

Source
pub async fn get_network<J, RR, TR, NR, NFR, SR, TCR, PR, AKR>(
    network_id: String,
    state: ThinDataAppState<J, RR, TR, NR, NFR, SR, TCR, PR, AKR>,
) -> Result<HttpResponse, ApiError>
Expand description

Retrieves details of a specific network by ID.

§Arguments

  • network_id - The ID of the network (e.g., “evm:sepolia”, “solana:mainnet”).
  • state - The application state containing the network repository.

§Returns

The details of the specified network or 404 if not found.