getWeb3ChainsByChainWithHttpInfo method

Future<Response> getWeb3ChainsByChainWithHttpInfo(
  1. String chain
)

Reports one chain and whether its upstream is answering.

Reports one chain and whether its upstream is answering. An unreachable chain is still a 200 with live:false — the chain is configured, which is a different fact from the chain being up, and a 502 here would make a console page error rather than show the outage.

Note: This method returns the HTTP Response.

Parameters:

  • String chain (required): Chain is the registry id, as in /v1/web3/chains/lux.

Implementation

Future<Response> getWeb3ChainsByChainWithHttpInfo(String chain,) async {
  // ignore: prefer_const_declarations
  final path = r'/v1/web3/chains/{chain}'
    .replaceAll('{chain}', chain);

  // ignore: prefer_final_locals
  Object? postBody;

  final queryParams = <QueryParam>[];
  final headerParams = <String, String>{};
  final formParams = <String, String>{};

  const contentTypes = <String>[];


  return apiClient.invokeAPI(
    path,
    'GET',
    queryParams,
    postBody,
    headerParams,
    formParams,
    contentTypes.isEmpty ? null : contentTypes.first,
  );
}