메인 콘텐츠로 건너뛰기

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.

체인에서 IBC 관련 데이터를 쿼리하는 예제 코드 스니펫입니다.

gRPC 사용

IBC 해시에서 denom trace 조회

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);

denom trace 목록 조회

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