UNPKG

@ping-pub/chain-registry-client

Version:

Cosmos Blockchain Registry Client

13 lines (12 loc) 535 B
import { Chain, AssetList, IBCPath } from './types'; export default class ChainRegistryClient { readonly endpoint: string; constructor(endpoint?: string); getAny(url: string): Promise<any>; get<T>(url: string): Promise<T>; fetchChainNames(): Promise<string[]>; fetchChainInfo(chainName: string): Promise<Chain>; fetchAssetsList(chainName: string): Promise<AssetList>; fetchIBCPaths(): Promise<IBCPath[]>; fetchIBCPathInfo(path: string): Promise<import("@chain-registry/types/types/ibc").IBCInfo>; }