Class ChannelUtils

This class provides methods related to IBC channels.

Constructors

Methods

  • Fetches the destination chain ID for a given source chain and channel ID

    Parameters

    • channelId: string

      channel ID

    • chain: CosmosChainData

      chain data object - must include chainId and restUrl

    Returns Promise<ChannelData>

    object with the destination chainId property

  • Initializes the cache for storing channel data.

    Parameters

    Returns void

  • Returns boolean

    true if the cache is initialized, false otherwise.