Skip to main content

Documentation Index

Fetch the complete documentation index at: https://injectivelabs-mintlify-jp-developers-first-half-1777019423.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

Example code snippets to query the chain for IBC related data.

Using gRPC

Fetch denom trace from the IBC hash

import { ChainGrpcIbcApi } from "@injectivelabs/sdk-ts/client/chain";
import { getNetworkEndpoints, Network } from "@injectivelabs/networks";

const endpoints = getNetworkEndpoints(Network.Testnet);
const chainGrpcIbcApi = new ChainGrpcIbcApi(endpoints.grpc);
const hash = "...";

const denomTrace = await chainGrpcIbcApi.fetchDenomTrace(hash);

console.log(denomTrace);

Fetch list of denom traces

import { ChainGrpcIbcApi } from "@injectivelabs/sdk-ts/client/chain";
import { getNetworkEndpoints, Network } from "@injectivelabs/networks";

const endpoints = getNetworkEndpoints(Network.Testnet);
const chainGrpcIbcApi = new ChainGrpcIbcApi(endpoints.grpc);

const denomTraces = await chainGrpcIbcApi.fetchDenomsTrace();

console.log(denomTraces);
Last modified on April 24, 2026