Portfolio
portfolioモジュール関連のデータをindexerでクエリするためのコードスニペット例。
最終更新日 2026年6月2日
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
import { IndexerGrpcPortfolioApi } from "@injectivelabs/sdk-ts/client/indexer";
import { getNetworkEndpoints, Network } from "@injectivelabs/networks";
const endpoints = getNetworkEndpoints(Network.Testnet);
const indexerGrpcPortfolioApi = new IndexerGrpcPortfolioApi(endpoints.indexer);
const injectiveAddress = "inj...";
const portfolio = await indexerGrpcPortfolioApi.fetchAccountPortfolioBalances(
injectiveAddress
);
console.log(portfolio);
