IBC queries
Create a queryClient
// Instantiate tmClient
const tmClient = await Tendermint34Client.connect(rpcUrl);
// Create client with authExtension
const client = QueryClient.withExtensions(tmClient, setupAuthExtension);
Available query methods
Channel Queries
Method | Description | Params |
---|---|---|
.ibc.channel.channel | portId: string, channelId: string | |
.ibc.channel.channels | paginationKey?: Uint8Array | |
.ibc.channel.allChannels | none | |
.ibc.channel.connectionChannels | connection: string, paginationKey?: Uint8Array | |
.ibc.channel.allConnectionChannels | connection: string | |
.ibc.channel.clientState | portId: string, channelId: string | |
.ibc.channel.consensusState | portId: string,channelId: string,revisionNumber: number,revisionHeight: number | |
.ibc.channel.packetCommitment | portId: string, channelId: string, sequence: Long | |
.ibc.channel.packetCommitments | portId: string,channelId: string,paginationKey?: Uint8Array | |
.ibc.channel.allPacketCommitments | portId: string, channelId: string | |
.ibc.channel.packetReceipt | portId: string, channelId: string, sequence: number | |
.ibc.channel.packetAcknowledgement | portId: string,channelId: string, sequence: number | |
.ibc.channel.packetAcknowledgements | portId: string,channelId: string,paginationKey?: Uint8Array | |
.ibc.channel.allPacketAcknowledgements | portId: string, channelId: string | |
.ibc.channel.unreceivedPackets | portId: string,channelId: string, packetCommitmentSequences: number[] | |
.ibc.channel.unreceivedAcks | portId: string,channelId: string,packetAckSequences: number[] | |
.ibc.channel.nextSequenceReceive | portId: string,channelId: string |
Client Queries
Method | Description | Params |
---|---|---|
.ibc.client.state | clientId: string | |
.ibc.client.states | paginationKey?: Uint8Array | |
.ibc.client.allStates | none | |
.ibc.client.consensusState | clientId: string, height?: number | |
.ibc.client.consensusStates | clientId: string,paginationKey?: Uint8Array | |
.ibc.client.allConsensusStates | clientId: string | |
.ibc.client.params | none | |
.ibc.client.stateTm | clientId: string | |
.ibc.client.statesTm | paginationKey?: Uint8Array | |
.ibc.client.allStatesTm | none | |
.ibc.client.consensusStateTm | clientId: string, height?: Height |
Connection Queries
Method | Description | Params |
---|---|---|
.ibc.connection.connection | connectionId: string | |
.ibc.connection.connections | paginationKey?: Uint8Array | |
.ibc.connection.allConnections | none | |
.ibc.connection.clientConnections | clientId: string | |
.ibc.connection.clientState | connectionId: string | |
.ibc.connection.consensusState | connectionId: string,revisionNumber: number,revisionHeight: number |
Transfer Queries
Method | Description | Params |
---|---|---|
.ibc.transfer.denomTrace | hash: string | |
.ibc.transfer.denomTraces | paginationKey?: Uint8Array | |
.ibc.transfer.allDenomTraces | none | |
.ibc.transfer.params | none |