@keplr-ewallet/ewallet-sdk-cosmos
Version:
9 lines • 389 B
JavaScript
import { sendGetCosmosChainInfo } from "../utils/chain";
export async function getCosmosChainInfo() {
const chainInfoRes = await sendGetCosmosChainInfo(this.eWallet);
if (!chainInfoRes.success) {
throw new Error(`Failed to get chain registry response: ${chainInfoRes.err.toString()}`);
}
return chainInfoRes.data;
}
//# sourceMappingURL=get_cosmos_chain_info.js.map