channel, client, connection, and transfer.
Channels
Connections
Clients
Transfer
Next Steps
Pagination
Manual pagination for IBC queries that don’t have
all* helpers.Querying Overview
All available query extensions.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Query IBC channels, connections, clients, and transfer denomination traces
channel, client, connection, and transfer.
import { QueryClient, setupIbcExtension } from "@cosmjs/stargate";
import { connectComet } from "@cosmjs/tendermint-rpc";
const cometClient = await connectComet("https://rpc.my-chain.network");
const queryClient = QueryClient.withExtensions(cometClient, setupIbcExtension);
const channel = await queryClient.ibc.channel.channel("transfer", "channel-0");
const allChannels = await queryClient.ibc.channel.allChannels();
const connChannels = await queryClient.ibc.channel.allConnectionChannels("connection-0");
const connection = await queryClient.ibc.connection.connection("connection-0");
const allConnections = await queryClient.ibc.connection.allConnections();
const clientState = await queryClient.ibc.client.state("07-tendermint-0");
const allStates = await queryClient.ibc.client.allStates();
const allStatesTm = await queryClient.ibc.client.allStatesTm();
const denomTrace = await queryClient.ibc.transfer.denomTrace("hash...");
const allDenomTraces = await queryClient.ibc.transfer.allDenomTraces();
const transferParams = await queryClient.ibc.transfer.params();
all* helper methods that automatically paginate through all results internally, so you don’t need to handle pagination yourself.all* helpers.Was this page helpful?