Example code snippets to query the chain via the oracle api.
Last modified on July 9, 2026
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
import { ChainGrpcOracleApi } from "@injectivelabs/sdk-ts/client/chain";
import { getNetworkEndpoints, Network } from "@injectivelabs/networks";
const endpoints = getNetworkEndpoints(Network.Testnet);
const chainGrpcOracleApi = new ChainGrpcOracleApi(endpoints.grpc);
const moduleParams = await chainGrpcOracleApi.fetchModuleParams();
console.log(moduleParams);
