Keplr

queryKeplrConfig

Queries a stored Keplr chain config by identifier.

export async function queryKeplrConfig(identifier: string) {
  const resp = await query<QueryKeplrConfig, QueryKeplrConfigResponse>(
    QUERY_KEPLR_CONFIG,
    {
      identifier,
    }
  );
  return resp.keplrConfigs.config;
}

QueryKeplrAllConfigs

Queries all the stored Keplr configs.

export async function QueryKeplrAllConfigs() {
  const resp = await query<QueryKeplrAllConfigs, QueryKeplrAllConfigsResponse>(
    QUERY_KEPLR_CONFIG,
    {}
  );
  return resp.keplrConfigs.allConfigs;
}

Last updated